Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cime_config/testdefs/testlist_cam.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
<option name="comment">Test for Zhang McFarlane physics</option>
</options>
</test>
<test compset="FPHYStest" grid="ne5_ne5_mg37" name="SMS_Ln2" testmods="cam/outfrq_hack_shallow_derecho">
<test compset="FPHYStest" grid="ne3pg3_ne3pg3_mg37" name="SMS_Ln2" testmods="cam/outfrq_hack_shallow_derecho">
<machines>
<machine name="derecho" compiler="gnu" category="aux_sima"/>
</machines>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ hkconv_c0 = 1.0e-4
! history fields for CAM4 Hack shallow convection
hist_output_frequency;h1: 1*nsteps
hist_max_frames;h1: 1
hist_add_inst_fields;h1: CMFDT,CMFDQ,CMFDLIQ,CMFDICE,CMFDQR,DQP,ICWMRSH,CMFSL,CMFLQ,FREQSH,EVAPTCM,FZSNTCM,EVSNTCM,HKNTPRPD,HKNTSNPD,HKFLXPRC,HKFLXSNW,HKEIHEAT,EVAPQCM,PRECSH,CMFMCSH,CMFMC,CLDTOP,CLDBOT,PCLDTOP,PCLDBOT,ZMDLF,SHDLF
hist_add_inst_fields;h1: CMFDT,CMFDQ,CMFDLIQ,CMFDICE,CMFDQR,DQP,ICWMRSH,CMFSL,CMFLQ,FREQSH,EVAPTCM,FZSNTCM,EVSNTCM,HKNTPRPD,HKNTSNPD,HKFLXPRC,HKFLXSNW,HKEIHEAT,EVAPQCM,PRECSH,CMFMCSH
hist_precision;h1: REAL64
11 changes: 1 addition & 10 deletions src/data/write_init_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -1133,16 +1133,7 @@ def write_phys_read_subroutine(outfile, host_dict, host_vars, host_imports,
outfile.write("if (constituent_errflg /= 0) then", 4)
outfile.write("call endrun(constituent_errmsg, file=__FILE__, line=__LINE__)", 5)
outfile.write("end if", 4)
outfile.write("if (constituent_has_default) then", 4)
outfile.write("call const_props(constituent_idx)%default_value(constituent_default_value, constituent_errflg, constituent_errmsg)", 5)
outfile.write("if (constituent_errflg /= 0) then", 5)
outfile.write("call endrun(constituent_errmsg, file=__FILE__, line=__LINE__)", 6)
outfile.write("end if", 5)
outfile.write("field_data_ptr(:,:,constituent_idx) = constituent_default_value", 5)
outfile.write("if (masterproc) then", 5)
outfile.write("write(iulog,*) 'Constituent ', trim(std_name), ' initialized to default value: ', constituent_default_value", 6)
outfile.write("end if", 5)
outfile.write("else", 4)
outfile.write("if (.not. constituent_has_default) then", 4)
outfile.comment("Intialize to constituent's configured minimum value", 5)
outfile.write("call const_props(constituent_idx)%minimum(constituent_min_value, constituent_errflg, constituent_errmsg)", 5)
outfile.write("field_data_ptr(:,:,constituent_idx) = constituent_min_value", 5)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,16 +204,7 @@ subroutine physics_read_data(file, suite_names, timestep, read_initialized_varia
if (constituent_errflg /= 0) then
call endrun(constituent_errmsg, file=__FILE__, line=__LINE__)
end if
if (constituent_has_default) then
call const_props(constituent_idx)%default_value(constituent_default_value, constituent_errflg, constituent_errmsg)
if (constituent_errflg /= 0) then
call endrun(constituent_errmsg, file=__FILE__, line=__LINE__)
end if
field_data_ptr(:,:,constituent_idx) = constituent_default_value
if (masterproc) then
write(iulog,*) 'Constituent ', trim(std_name), ' initialized to default value: ', constituent_default_value
end if
else
if (.not. constituent_has_default) then
! Intialize to constituent's configured minimum value
call const_props(constituent_idx)%minimum(constituent_min_value, constituent_errflg, constituent_errmsg)
field_data_ptr(:,:,constituent_idx) = constituent_min_value
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,16 +204,7 @@ subroutine physics_read_data(file, suite_names, timestep, read_initialized_varia
if (constituent_errflg /= 0) then
call endrun(constituent_errmsg, file=__FILE__, line=__LINE__)
end if
if (constituent_has_default) then
call const_props(constituent_idx)%default_value(constituent_default_value, constituent_errflg, constituent_errmsg)
if (constituent_errflg /= 0) then
call endrun(constituent_errmsg, file=__FILE__, line=__LINE__)
end if
field_data_ptr(:,:,constituent_idx) = constituent_default_value
if (masterproc) then
write(iulog,*) 'Constituent ', trim(std_name), ' initialized to default value: ', constituent_default_value
end if
else
if (.not. constituent_has_default) then
! Intialize to constituent's configured minimum value
call const_props(constituent_idx)%minimum(constituent_min_value, constituent_errflg, constituent_errmsg)
field_data_ptr(:,:,constituent_idx) = constituent_min_value
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,16 +204,7 @@ subroutine physics_read_data(file, suite_names, timestep, read_initialized_varia
if (constituent_errflg /= 0) then
call endrun(constituent_errmsg, file=__FILE__, line=__LINE__)
end if
if (constituent_has_default) then
call const_props(constituent_idx)%default_value(constituent_default_value, constituent_errflg, constituent_errmsg)
if (constituent_errflg /= 0) then
call endrun(constituent_errmsg, file=__FILE__, line=__LINE__)
end if
field_data_ptr(:,:,constituent_idx) = constituent_default_value
if (masterproc) then
write(iulog,*) 'Constituent ', trim(std_name), ' initialized to default value: ', constituent_default_value
end if
else
if (.not. constituent_has_default) then
! Intialize to constituent's configured minimum value
call const_props(constituent_idx)%minimum(constituent_min_value, constituent_errflg, constituent_errmsg)
field_data_ptr(:,:,constituent_idx) = constituent_min_value
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,16 +204,7 @@ subroutine physics_read_data(file, suite_names, timestep, read_initialized_varia
if (constituent_errflg /= 0) then
call endrun(constituent_errmsg, file=__FILE__, line=__LINE__)
end if
if (constituent_has_default) then
call const_props(constituent_idx)%default_value(constituent_default_value, constituent_errflg, constituent_errmsg)
if (constituent_errflg /= 0) then
call endrun(constituent_errmsg, file=__FILE__, line=__LINE__)
end if
field_data_ptr(:,:,constituent_idx) = constituent_default_value
if (masterproc) then
write(iulog,*) 'Constituent ', trim(std_name), ' initialized to default value: ', constituent_default_value
end if
else
if (.not. constituent_has_default) then
! Intialize to constituent's configured minimum value
call const_props(constituent_idx)%minimum(constituent_min_value, constituent_errflg, constituent_errmsg)
field_data_ptr(:,:,constituent_idx) = constituent_min_value
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,16 +204,7 @@ subroutine physics_read_data(file, suite_names, timestep, read_initialized_varia
if (constituent_errflg /= 0) then
call endrun(constituent_errmsg, file=__FILE__, line=__LINE__)
end if
if (constituent_has_default) then
call const_props(constituent_idx)%default_value(constituent_default_value, constituent_errflg, constituent_errmsg)
if (constituent_errflg /= 0) then
call endrun(constituent_errmsg, file=__FILE__, line=__LINE__)
end if
field_data_ptr(:,:,constituent_idx) = constituent_default_value
if (masterproc) then
write(iulog,*) 'Constituent ', trim(std_name), ' initialized to default value: ', constituent_default_value
end if
else
if (.not. constituent_has_default) then
! Intialize to constituent's configured minimum value
call const_props(constituent_idx)%minimum(constituent_min_value, constituent_errflg, constituent_errmsg)
field_data_ptr(:,:,constituent_idx) = constituent_min_value
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,16 +204,7 @@ subroutine physics_read_data(file, suite_names, timestep, read_initialized_varia
if (constituent_errflg /= 0) then
call endrun(constituent_errmsg, file=__FILE__, line=__LINE__)
end if
if (constituent_has_default) then
call const_props(constituent_idx)%default_value(constituent_default_value, constituent_errflg, constituent_errmsg)
if (constituent_errflg /= 0) then
call endrun(constituent_errmsg, file=__FILE__, line=__LINE__)
end if
field_data_ptr(:,:,constituent_idx) = constituent_default_value
if (masterproc) then
write(iulog,*) 'Constituent ', trim(std_name), ' initialized to default value: ', constituent_default_value
end if
else
if (.not. constituent_has_default) then
! Intialize to constituent's configured minimum value
call const_props(constituent_idx)%minimum(constituent_min_value, constituent_errflg, constituent_errmsg)
field_data_ptr(:,:,constituent_idx) = constituent_min_value
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,16 +201,7 @@ subroutine physics_read_data(file, suite_names, timestep, read_initialized_varia
if (constituent_errflg /= 0) then
call endrun(constituent_errmsg, file=__FILE__, line=__LINE__)
end if
if (constituent_has_default) then
call const_props(constituent_idx)%default_value(constituent_default_value, constituent_errflg, constituent_errmsg)
if (constituent_errflg /= 0) then
call endrun(constituent_errmsg, file=__FILE__, line=__LINE__)
end if
field_data_ptr(:,:,constituent_idx) = constituent_default_value
if (masterproc) then
write(iulog,*) 'Constituent ', trim(std_name), ' initialized to default value: ', constituent_default_value
end if
else
if (.not. constituent_has_default) then
! Intialize to constituent's configured minimum value
call const_props(constituent_idx)%minimum(constituent_min_value, constituent_errflg, constituent_errmsg)
field_data_ptr(:,:,constituent_idx) = constituent_min_value
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,16 +204,7 @@ subroutine physics_read_data(file, suite_names, timestep, read_initialized_varia
if (constituent_errflg /= 0) then
call endrun(constituent_errmsg, file=__FILE__, line=__LINE__)
end if
if (constituent_has_default) then
call const_props(constituent_idx)%default_value(constituent_default_value, constituent_errflg, constituent_errmsg)
if (constituent_errflg /= 0) then
call endrun(constituent_errmsg, file=__FILE__, line=__LINE__)
end if
field_data_ptr(:,:,constituent_idx) = constituent_default_value
if (masterproc) then
write(iulog,*) 'Constituent ', trim(std_name), ' initialized to default value: ', constituent_default_value
end if
else
if (.not. constituent_has_default) then
! Intialize to constituent's configured minimum value
call const_props(constituent_idx)%minimum(constituent_min_value, constituent_errflg, constituent_errmsg)
field_data_ptr(:,:,constituent_idx) = constituent_min_value
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,16 +205,7 @@ subroutine physics_read_data(file, suite_names, timestep, read_initialized_varia
if (constituent_errflg /= 0) then
call endrun(constituent_errmsg, file=__FILE__, line=__LINE__)
end if
if (constituent_has_default) then
call const_props(constituent_idx)%default_value(constituent_default_value, constituent_errflg, constituent_errmsg)
if (constituent_errflg /= 0) then
call endrun(constituent_errmsg, file=__FILE__, line=__LINE__)
end if
field_data_ptr(:,:,constituent_idx) = constituent_default_value
if (masterproc) then
write(iulog,*) 'Constituent ', trim(std_name), ' initialized to default value: ', constituent_default_value
end if
else
if (.not. constituent_has_default) then
! Intialize to constituent's configured minimum value
call const_props(constituent_idx)%minimum(constituent_min_value, constituent_errflg, constituent_errmsg)
field_data_ptr(:,:,constituent_idx) = constituent_min_value
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,16 +204,7 @@ subroutine physics_read_data(file, suite_names, timestep, read_initialized_varia
if (constituent_errflg /= 0) then
call endrun(constituent_errmsg, file=__FILE__, line=__LINE__)
end if
if (constituent_has_default) then
call const_props(constituent_idx)%default_value(constituent_default_value, constituent_errflg, constituent_errmsg)
if (constituent_errflg /= 0) then
call endrun(constituent_errmsg, file=__FILE__, line=__LINE__)
end if
field_data_ptr(:,:,constituent_idx) = constituent_default_value
if (masterproc) then
write(iulog,*) 'Constituent ', trim(std_name), ' initialized to default value: ', constituent_default_value
end if
else
if (.not. constituent_has_default) then
! Intialize to constituent's configured minimum value
call const_props(constituent_idx)%minimum(constituent_min_value, constituent_errflg, constituent_errmsg)
field_data_ptr(:,:,constituent_idx) = constituent_min_value
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,16 +197,7 @@ subroutine physics_read_data(file, suite_names, timestep, read_initialized_varia
if (constituent_errflg /= 0) then
call endrun(constituent_errmsg, file=__FILE__, line=__LINE__)
end if
if (constituent_has_default) then
call const_props(constituent_idx)%default_value(constituent_default_value, constituent_errflg, constituent_errmsg)
if (constituent_errflg /= 0) then
call endrun(constituent_errmsg, file=__FILE__, line=__LINE__)
end if
field_data_ptr(:,:,constituent_idx) = constituent_default_value
if (masterproc) then
write(iulog,*) 'Constituent ', trim(std_name), ' initialized to default value: ', constituent_default_value
end if
else
if (.not. constituent_has_default) then
! Intialize to constituent's configured minimum value
call const_props(constituent_idx)%minimum(constituent_min_value, constituent_errflg, constituent_errmsg)
field_data_ptr(:,:,constituent_idx) = constituent_min_value
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,16 +207,7 @@ subroutine physics_read_data(file, suite_names, timestep, read_initialized_varia
if (constituent_errflg /= 0) then
call endrun(constituent_errmsg, file=__FILE__, line=__LINE__)
end if
if (constituent_has_default) then
call const_props(constituent_idx)%default_value(constituent_default_value, constituent_errflg, constituent_errmsg)
if (constituent_errflg /= 0) then
call endrun(constituent_errmsg, file=__FILE__, line=__LINE__)
end if
field_data_ptr(:,:,constituent_idx) = constituent_default_value
if (masterproc) then
write(iulog,*) 'Constituent ', trim(std_name), ' initialized to default value: ', constituent_default_value
end if
else
if (.not. constituent_has_default) then
! Intialize to constituent's configured minimum value
call const_props(constituent_idx)%minimum(constituent_min_value, constituent_errflg, constituent_errmsg)
field_data_ptr(:,:,constituent_idx) = constituent_min_value
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,16 +204,7 @@ subroutine physics_read_data(file, suite_names, timestep, read_initialized_varia
if (constituent_errflg /= 0) then
call endrun(constituent_errmsg, file=__FILE__, line=__LINE__)
end if
if (constituent_has_default) then
call const_props(constituent_idx)%default_value(constituent_default_value, constituent_errflg, constituent_errmsg)
if (constituent_errflg /= 0) then
call endrun(constituent_errmsg, file=__FILE__, line=__LINE__)
end if
field_data_ptr(:,:,constituent_idx) = constituent_default_value
if (masterproc) then
write(iulog,*) 'Constituent ', trim(std_name), ' initialized to default value: ', constituent_default_value
end if
else
if (.not. constituent_has_default) then
! Intialize to constituent's configured minimum value
call const_props(constituent_idx)%minimum(constituent_min_value, constituent_errflg, constituent_errmsg)
field_data_ptr(:,:,constituent_idx) = constituent_min_value
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,16 +204,7 @@ subroutine physics_read_data(file, suite_names, timestep, read_initialized_varia
if (constituent_errflg /= 0) then
call endrun(constituent_errmsg, file=__FILE__, line=__LINE__)
end if
if (constituent_has_default) then
call const_props(constituent_idx)%default_value(constituent_default_value, constituent_errflg, constituent_errmsg)
if (constituent_errflg /= 0) then
call endrun(constituent_errmsg, file=__FILE__, line=__LINE__)
end if
field_data_ptr(:,:,constituent_idx) = constituent_default_value
if (masterproc) then
write(iulog,*) 'Constituent ', trim(std_name), ' initialized to default value: ', constituent_default_value
end if
else
if (.not. constituent_has_default) then
! Intialize to constituent's configured minimum value
call const_props(constituent_idx)%minimum(constituent_min_value, constituent_errflg, constituent_errmsg)
field_data_ptr(:,:,constituent_idx) = constituent_min_value
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,16 +204,7 @@ subroutine physics_read_data(file, suite_names, timestep, read_initialized_varia
if (constituent_errflg /= 0) then
call endrun(constituent_errmsg, file=__FILE__, line=__LINE__)
end if
if (constituent_has_default) then
call const_props(constituent_idx)%default_value(constituent_default_value, constituent_errflg, constituent_errmsg)
if (constituent_errflg /= 0) then
call endrun(constituent_errmsg, file=__FILE__, line=__LINE__)
end if
field_data_ptr(:,:,constituent_idx) = constituent_default_value
if (masterproc) then
write(iulog,*) 'Constituent ', trim(std_name), ' initialized to default value: ', constituent_default_value
end if
else
if (.not. constituent_has_default) then
! Intialize to constituent's configured minimum value
call const_props(constituent_idx)%minimum(constituent_min_value, constituent_errflg, constituent_errmsg)
field_data_ptr(:,:,constituent_idx) = constituent_min_value
Expand Down