saroj@caos_iisc_ernet_in
New Member
Dear CAM users,
As a part of a study , I need to call the ZM scheme once in 3 timesteps, whereas the hack scheme will be called every timestep. To implement it what I have done is : the subroutine zm_convr is called from tphysbc as usual, but inside zm_convr I have put a condition that all the calculations will be carried out only if nstep is a multiple of 3 else it should use the output of the previous timestep. Again in the subroutine zm_evap, I check the hackflag alongwith the timestep number, to decide whether there will be any evaporation or not. If the hackflag is true, the evaporation calculations are carried out whereas if it is false, the output from the previous timestep are repeated.
While running the model it shows "significant energy and water conservation errors", and then there is a segmentation fault and the model stops.
The following is the error:
H_DEFINE: Successfully opened netcdf file
nstep, te 1 3303241608.55618477 -56.4380632074673940 0.563410444660671691E-02 98449.8678402549122
significant conservations error energy after zm_evap count 1 nstep 1 chunk 193 col 1
3432303598.99614239 3432294251.60643768 0.000000000000000000E+00 -9347.38970448169857 -9347.38970448169857 -0.272335748721009053E-05
significant conservations error water after zm_evap count 2 nstep 1 chunk 193 col 1
13.6635202481566260 13.6605878625277590 0.000000000000000000E+00 -0.293238562886678853E-02 -0.293238562886678853E-02 -0.214614211828947248E-03
Can anyone tell me where exactly I am making a mistake. Also, if there is a simpler way to do the same thing.
Thanks in Advance,
sans
As a part of a study , I need to call the ZM scheme once in 3 timesteps, whereas the hack scheme will be called every timestep. To implement it what I have done is : the subroutine zm_convr is called from tphysbc as usual, but inside zm_convr I have put a condition that all the calculations will be carried out only if nstep is a multiple of 3 else it should use the output of the previous timestep. Again in the subroutine zm_evap, I check the hackflag alongwith the timestep number, to decide whether there will be any evaporation or not. If the hackflag is true, the evaporation calculations are carried out whereas if it is false, the output from the previous timestep are repeated.
While running the model it shows "significant energy and water conservation errors", and then there is a segmentation fault and the model stops.
The following is the error:
H_DEFINE: Successfully opened netcdf file
nstep, te 1 3303241608.55618477 -56.4380632074673940 0.563410444660671691E-02 98449.8678402549122
significant conservations error energy after zm_evap count 1 nstep 1 chunk 193 col 1
3432303598.99614239 3432294251.60643768 0.000000000000000000E+00 -9347.38970448169857 -9347.38970448169857 -0.272335748721009053E-05
significant conservations error water after zm_evap count 2 nstep 1 chunk 193 col 1
13.6635202481566260 13.6605878625277590 0.000000000000000000E+00 -0.293238562886678853E-02 -0.293238562886678853E-02 -0.214614211828947248E-03
Can anyone tell me where exactly I am making a mistake. Also, if there is a simpler way to do the same thing.
Thanks in Advance,
sans