Expand|Select|Wrap|Line Numbers
- CmbCalc::CmbCalc() :infla(true)
This class is defined in a header file what it implies it is a global class for all .cc files which include this header file, right?
Now the question is when will the constructor be executed?
All this problem arises from a already written monte-carlo simulation code. There is a function called master() which writes to disk and makes the function slave() do the calculations. The slave() always defines an object of type CmbCalc, does this mean the constructor is executed every time the master calls the slave?
This is important because at the of the slave's calculation one has infla=false and the code to work properly needs to start always with infla=true.
Thanks very much for any clarification!