Example #1
0
 public SnowWrapper()
 {
     s             = new SnowState();
     r             = new SnowRate();
     a             = new SnowAuxiliary();
     snowComponent = new SnowComponent();
     loadParameters();
 }
Example #2
0
 public SnowWrapper(Universe universe) : base(universe)
 {
     s             = new SnowState();
     r             = new SnowRate();
     a             = new SnowAuxiliary();
     snowComponent = new Snow();
     loadParameters();
 }
Example #3
0
 public SnowWrapper(SnowWrapper toCopy, bool copyAll) : this()
 {
     s = (toCopy.s != null) ? new SnowState(toCopy.s, copyAll) : null;
     r = (toCopy.r != null) ? new SnowRate(toCopy.r, copyAll) : null;
     a = (toCopy.a != null) ? new SnowAuxiliary(toCopy.a, copyAll) : null;
     if (copyAll)
     {
         snowComponent = (toCopy.snowComponent != null) ? new SnowComponent(toCopy.snowComponent) : null;
     }
 }
Example #4
0
 public SnowWrapper(Universe universe, SnowWrapper toCopy, bool copyAll) : base(universe)
 {
     s = (toCopy.s != null) ? new SnowState(toCopy.s, copyAll) : null;
     r = (toCopy.r != null) ? new SnowRate(toCopy.r, copyAll) : null;
     a = (toCopy.a != null) ? new SnowAuxiliary(toCopy.a, copyAll) : null;
     if (copyAll)
     {
         snowComponent = (toCopy.snowComponent != null) ? new Snow(toCopy.snowComponent) : null;
     }
 }
Example #5
0
 public SnowComponent(SnowComponent toCopy) : this() // copy constructor
 {
     P_tmaxseuil = toCopy.P_tmaxseuil;
     P_tminseuil = toCopy.P_tminseuil;
     P_prof      = toCopy.P_prof;
     P_E         = toCopy.P_E;
     P_Pns       = toCopy.P_Pns;
     P_Kmin      = toCopy.P_Kmin;
     P_Tmf       = toCopy.P_Tmf;
     P_SWrf      = toCopy.P_SWrf;
     P_tsmax     = toCopy.P_tsmax;
     P_DKmax     = toCopy.P_DKmax;
     P_trmax     = toCopy.P_trmax;
 }
Example #6
0
 public SnowComponent(SnowComponent toCopy) : this() // copy constructor
 {
     tmaxseuil = toCopy.tmaxseuil;
     tminseuil = toCopy.tminseuil;
     prof      = toCopy.prof;
     E         = toCopy.E;
     rho       = toCopy.rho;
     Pns       = toCopy.Pns;
     Kmin      = toCopy.Kmin;
     Tmf       = toCopy.Tmf;
     SWrf      = toCopy.SWrf;
     tsmax     = toCopy.tsmax;
     DKmax     = toCopy.DKmax;
     trmax     = toCopy.trmax;
 }