Beispiel #1
0
 public override void initializeUnits(sinter_Sim o_sim)
 {
     if (!isSetting)
     {
         o_units        = o_sim.getCurrentUnits(addressStrings[0], get_vectorIndicies(o_sim));
         o_defaultUnits = o_units;
     }
 }
Beispiel #2
0
 //This is for querying the simulation for the current units in the simulation.  So it sets both units and default units.
 //This isn't for use during a normal simulation, it's mostly part of the sinter config generation process.
 public virtual void initializeUnits(sinter_Sim o_sim)
 {
     if (!isSetting)
     {
         if (o_units == null || o_units == "")  //If the user as already set some units, we want to keep those
         {
             o_units        = o_sim.getCurrentUnits(addressStrings[0]);
             o_defaultUnits = o_units;
         }
     }
 }