Hi,
I am porting my configuration in CESM_beta06 on Derecho. After edited config_machine.xml, config_compiler.xml and config_batch.xml according to the Derecho-supported CESM2.2.2, I got the following error ERROR: Cannot modify case, read_only. Case must be opened with read_only=False and can only be modified within a context manager.
This error is defined in case.py and the function set_value is called by case.set_value("CAM_CPPDEFS", user_cppdefs). I printed out variables in this set_value function in buildcpp showing self._read_only_mode= True, self._force_read_only=True, item=CAM_CPPDEFS, value=-DPLON=288 -DPLAT=192 -DNUM_COMP_INST_ATM=1 -DNUM_COMP_INST_LND=1 -DNUM_COMP_INST_OCN=1 -DNUM_COMP_INST_ICE=1 -DNUM_COMP_INST_GLC=1 -DNUM_COMP_INST_ROF=1 -DNUM_COMP_INST_WAV=1 -DNUM_COMP_INST_IAC=1 -DNUM_COMP_INST_ESP=1 -DPLEV=26 -DPCNST=3 -DPCOLS=16 -DPSUBCOLS=1 -DN_RAD_CNST=30 -DPTRM=1 -DPTRN=1 -DPTRK=1 -DSPMD
However, if I use pdb to run case.build, this error will disappear.
Any input and suggestions are appreciated.
I am porting my configuration in CESM_beta06 on Derecho. After edited config_machine.xml, config_compiler.xml and config_batch.xml according to the Derecho-supported CESM2.2.2, I got the following error ERROR: Cannot modify case, read_only. Case must be opened with read_only=False and can only be modified within a context manager.
This error is defined in case.py and the function set_value is called by case.set_value("CAM_CPPDEFS", user_cppdefs). I printed out variables in this set_value function in buildcpp showing self._read_only_mode= True, self._force_read_only=True, item=CAM_CPPDEFS, value=-DPLON=288 -DPLAT=192 -DNUM_COMP_INST_ATM=1 -DNUM_COMP_INST_LND=1 -DNUM_COMP_INST_OCN=1 -DNUM_COMP_INST_ICE=1 -DNUM_COMP_INST_GLC=1 -DNUM_COMP_INST_ROF=1 -DNUM_COMP_INST_WAV=1 -DNUM_COMP_INST_IAC=1 -DNUM_COMP_INST_ESP=1 -DPLEV=26 -DPCNST=3 -DPCOLS=16 -DPSUBCOLS=1 -DN_RAD_CNST=30 -DPTRM=1 -DPTRN=1 -DPTRK=1 -DSPMD
However, if I use pdb to run case.build, this error will disappear.
Any input and suggestions are appreciated.