if(SLASimulator->getType()!="SimulaConstant<double>")msg::error("LeafDryWeight: this assumes a constant SLA use leafDryWeight.v2 with SimulaVariable when sla is not constant.");
BaseClassesMap::getDerivativeBaseClasses()["leafDryWeight"]=newInstantiationLeafDryWeight2;//original code depricated, now auto switching to correct version with or without rates.