Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move parse_tracers file from physics to host #520

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
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
4 changes: 2 additions & 2 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
branch = main
[submodule "ccpp-physics"]
path = ccpp/physics
url = https://github.com/NCAR/ccpp-physics
branch = main
url = https://github.com/climbfuji/ccpp-physics
branch = feature/add_nrl_parse_tracers_ncar_main
[submodule "CMakeModules"]
path = CMakeModules
url = https://github.com/noaa-emc/CMakeModules
Expand Down
2 changes: 1 addition & 1 deletion ccpp/physics
Submodule physics updated 173 files
41 changes: 41 additions & 0 deletions scm/src/GFDL_parse_tracers.F90
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
module parse_tracers

integer, parameter :: NO_TRACER = -99

public get_tracer_index, NO_TRACER

CONTAINS

function get_tracer_index (tracer_names, name, me, master, debug)

character(len=32), intent(in) :: tracer_names(:)
character(len=*), intent(in) :: name
integer, intent(in) :: me
integer, intent(in) :: master
logical, intent(in) :: debug
!--- local variables
integer :: get_tracer_index
integer :: i

get_tracer_index = NO_TRACER

do i=1, size(tracer_names)
if (trim(name) == trim(tracer_names(i))) then
get_tracer_index = i
exit
endif
enddo

if (debug .and. (me == master)) then
if (get_tracer_index == NO_TRACER) then
print *,' PE ',me,' tracer with name '//trim(name)//' not found'
else
print *,' PE ',me,' tracer FOUND:',trim(name)
endif
endif

return

end function get_tracer_index

end module parse_tracers
2 changes: 1 addition & 1 deletion scm/src/GFS_typedefs.meta
Original file line number Diff line number Diff line change
Expand Up @@ -10075,7 +10075,7 @@
dependencies = hooks/machine.F,hooks/physcons.F90
dependencies = Radiation/RRTMG/radlw_param.f,Radiation/RRTMG/radsw_param.f
dependencies = photochem/h2o_def.f,photochem/module_ozphys.F90
dependencies = MP/GFDL/GFDL_parse_tracers.F90
dependencies = ../../../scm/src/GFDL_parse_tracers.F90
dependencies = Interstitials/UFS_SCM_NEPTUNE/GFS_ccpp_suite_sim_pre.F90

[ccpp-arg-table]
Expand Down
2 changes: 0 additions & 2 deletions test/cmp_scmout.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,8 @@ def main():
# Housekeeping
if file_rt is not None:
result = os.system('tar -cvf scm_out_abs.tar scm_plots/*.png')
result = os.system('tar -cvf /scratch1/data_untrusted/Dustin.Swales/scm_out_abs.tar scm_plots/*.png')
else:
result = os.system('tar -cvf scm_out_diff.tar scm_plots/*.png')
result = os.system('tar -cvf /scratch1/data_untrusted/Dustin.Swales/scm_out_diff.tar scm_plots/*.png')
# end if
result = os.system('rm -rf scm_plots/')
#
Expand Down
Loading