2D case: problem with Energy flags
I am working on /scratch/elena/CavityCheck
to test the Cavity but I have encountered a problem not related to the cavity:
I am running a 2D simulation in the isothermal configuration, I do not need the energy configuration, however having all the flag set to false should be ok:
AdiabaticEoS false
{
FullEnergyEoS false
{
StarRadiation false
{
Epsilon 5e-07
ShadowAngle 7
TStar 0
RStar 1.5
}
ZBoundaryTemperature 3
OpacityLaw 0
{
Value 1
}
DustToGas 0.01
}
however the code exit with the message:
Fatal: asked for "Disk.AdiabaticEoS.FullEnergyEoS" in 2D. Energy equation with heating and cooling is not yet coded in 2D, you can use adi abatic with cooling.
I can continue warking by setting return true; in configLoader.cpp however I do not understand why the code enters in this part, is it because of:
if (cfg.get_child_optional("Disk.AdiabaticEoS.FullEnergyEoS")) {
shouldn't we have:
if(myCfg.get"Disk.AdiabaticEoS.FullEnergyEos",true){