Commit 769cd2fc authored by jouke's avatar jouke
Browse files

Adding some warnings as the irradiation needs updating

parent 508eb892
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
/*
Copyright  2016, The Pennsylvania State University
Copyright � 2016, The Pennsylvania State University
All rights reserved.

Copyright  2016 Forschungszentrum Jlich GmbH
Copyright � 2016 Forschungszentrum J�lich GmbH
All rights reserved.

Copyright  2022 Ernst Schfer, Ishan Ajmera
Copyright � 2022 Ernst Sch�fer, Ishan Ajmera
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted under the GNU General Public License v3 and provided that the following conditions are met:
@@ -185,6 +185,7 @@ DerivativeBase * newInstantiationPEPCarboxylationRate(SimulaDynamic* const pSD){

BundleSheathCO2Concentration::BundleSheathCO2Concentration(SimulaDynamic* pSD):DerivativeBase(pSD), cachedLeafTemperature(-99999), cachedTime(-10){
	std::string name = pSD->getName().substr(0, 6); // name = sunlit or shaded
	msg::warning("BundleSheathCO2Concentration is using irradiation. Code needs to be updated");
	pIrradiation = ORIGIN->getPath("/environment/atmosphere/irradiation");
	SimulaBase *probe = ORIGIN->getPath("/environment/atmosphere/CO2Concentration", "umol/mol");
	probe->get(atmosphericCO2Concentration);
+1 −0
Original line number Diff line number Diff line
@@ -46,6 +46,7 @@ LeafTemperature::LeafTemperature(SimulaDynamic* pSD):DerivativeBase(pSD), absorp
		probe->checkUnit("m");
		probe->get(leafCharacteristicDimension);
	}
	msg::warning("LeafTemperature is using irradiation. Code needs to be updated to use shortWaveRadiation");
	pIrradiation = pSD->getSibling(name + "LeafIrradiation");
//	pIrradiation=ORIGIN->getChild("environment")->getChild("atmosphere")->getChild("irradiation");
	Unit u = pIrradiation->getUnit();