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

Switch global ocean in init mode to E3SM shared constants #96

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
ce8ef39
Add TL319_r05_IcoswISC30E3r5 configuration
jonbob Apr 15, 2024
cb21d80
Adding optional argument to retrieve ncid from ncd_defvar_bygrid
dqwu May 3, 2024
60344fd
Simplifying PIO calls for interface restartvar in ELM
dqwu May 3, 2024
0fd52f6
Update modules for intel/gnu,impi/mvapich on Bebop
dqwu May 14, 2024
a67b671
added under_sea_ice restoring for G-cases by default
alicebarthel May 14, 2024
6480da5
modified sss restoring to dt by default
alicebarthel May 14, 2024
974529b
modified for under sea ice restoring to be default in all cases
alicebarthel May 14, 2024
c987140
Adding hooks for history dimension control in fates
rgknox Apr 2, 2024
93a0c8b
Updated fates external pointer to sci.1.76.3_api.35.1.0
rgknox May 15, 2024
fbc57ca
Merge branch 'E3SM-Project:master' into ocn/modify-sss-restoring-defa…
alicebarthel May 15, 2024
1a5f91d
Change high-frequency output to `append` mode
xylar May 28, 2024
7977c37
Add RRSwISC6to18E3r5 to MPAS-Ocean and -Seaice
xylar Dec 12, 2023
6707aa6
Add RRSwISC6to18E3r5 to ELM
xylar Dec 12, 2023
d7d700d
Update the partition files for ocean and ice
xylar Apr 5, 2024
e3cdc9f
add namelist build check to disallow fates sp mode with fates hydro
glemieux May 29, 2024
60fe431
update default fates parameter file
glemieux May 29, 2024
bd00c67
update fates allvars testmod with renamed history outputs
glemieux May 29, 2024
9be6081
change how fates_hist_dimlevel is set
glemieux May 29, 2024
2d05eb6
place expanded diagnostic write statement behind debug check
glemieux Jun 4, 2024
a4f20f9
Add mapping and domain files for RRSwISC6to18E3r5 mesh
jonbob Jun 4, 2024
565a93e
Update mapping and domain files created with an incorrect T62 scrip file
jonbob Jun 4, 2024
b103205
Matches Nvidia GPU compute capability (CC) version to cc80 on Perlmut…
grnydawn Jun 2, 2024
cdadd6f
update fates tag to sci.1.76.4_api.35.1.0
glemieux Jun 11, 2024
2272286
Fix domain filename to not include _mask
jonbob Jun 12, 2024
77843ba
add data rof for moab driver
iulian787 Apr 8, 2024
14737fe
use repartition (zoltan) for domain meshes
iulian787 Apr 17, 2024
c2ab502
record in the cpl.log the mesh/domain files used by moab coupler
iulian787 Apr 18, 2024
9a229db
change message in comparison MOABCOMP on cpl
iulian787 Apr 22, 2024
5bfe5c9
iMOAB_MergeVertices is not used
iulian787 Apr 22, 2024
6d84b34
add more debug for rof 2 ocn projections
iulian787 Apr 22, 2024
023f963
compare Forr_rofi fields in mct and moab
iulian787 Apr 22, 2024
102b54d
remove some debugging code
iulian787 May 9, 2024
9741e0b
Merge branch 'jonbob/grids/add-jra-icos-trigrid' (PR #6403)
jonbob Jun 12, 2024
e978040
Make bld files consistent with Registry changes
jonbob Jun 12, 2024
5f37229
add CMAKE_CUDA_ARCHITECTURES as in gnugpu
ndkeen Jun 13, 2024
578f1bd
remove comments accidentally committed
ndkeen Jun 13, 2024
9911e96
Change default for config_salinity_restoring_under_sea_ice
jonbob Jun 13, 2024
dc9beef
Merge branch 'xylar/ocn/fix-high-freq-output' (PR #6434)
jonbob Jun 13, 2024
fc123ed
Update defaults for RRSwISC6to18E3r5 to match ongoing tests
jonbob Jun 13, 2024
ed57f1c
Updates ELM subroutine to include dt as an input
bishtgautam May 11, 2024
bfc6631
Merge branch 'dqwu/mach/new-bebop-soft' (PR #6414)
rljacob Jun 13, 2024
dc87844
Merge branch 'xylar/mesh/add-rrswisc6to18e3r5' (PR #6447)
jonbob Jun 14, 2024
79c845d
Merge branch 'alicebarthel/ocn/modify-sss-restoring-defaults' (PR #6420)
jonbob Jun 14, 2024
669eb85
Merge branch 'dqwu/elm/simplify_restartvar' (PR #6394)
bishtgautam Jun 14, 2024
cd7f694
Update CIME submodule
jgfouca Jun 17, 2024
f14a3cf
Merge branch 'lnd/fates-api35' (PR #6419)
bishtgautam Jun 17, 2024
f0eada3
Merge branch 'jonbob/cpl/fix-t62-files' (PR #6459)
jonbob Jun 18, 2024
3f489e8
Merge branch E3SM-Project/ykim/machinefiles/fix-nvidiagpu-pm-gpu (PR …
ndkeen Jun 18, 2024
0f1422f
Merge branch 'bishtgautam/lnd/fix-root-dyn'(PR #6408)
peterdschwartz Jun 20, 2024
85c8c5e
Merge branch 'jgfouca/update_cime_subm_2024_06_17' into master (PR #6…
jgfouca Jun 20, 2024
ce54838
Merge branch 'iulian787/moab_data_rof' (PR #6410)
rljacob Jun 20, 2024
254955c
Add shared E3SM constants to MPAS-Ocean init mode
xylar May 3, 2024
2c73596
Switch global ocean in init mode to E3SM shared constants
xylar May 3, 2024
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
Submodule cime updated 52 files
+86 −22 .github/scripts/ghcr-prune.py
+20 −12 .github/workflows/docs.yml
+3 −7 .github/workflows/ghcr-prune.yml
+2 −1 .github/workflows/testing.yml
+1 −0 .gitignore
+2 −0 .pre-commit-config.yaml
+1 −1 CIME/ParamGen/xml_schema/entry_id_pg.xsd
+6 −2 CIME/SystemTests/eri.py
+2 −2 CIME/SystemTests/system_tests_common.py
+4 −1 CIME/Tools/check_case
+2 −1 CIME/Tools/check_lockedfiles
+28 −26 CIME/Tools/xmlchange
+1 −8 CIME/XML/archive_base.py
+8 −3 CIME/XML/env_batch.py
+30 −15 CIME/XML/grids.py
+1 −1 CIME/XML/test_reporter.py
+8 −6 CIME/build.py
+0 −5 CIME/case/case.py
+12 −2 CIME/case/case_run.py
+18 −9 CIME/case/case_setup.py
+0 −4 CIME/case/case_st_archive.py
+19 −10 CIME/case/case_submit.py
+0 −151 CIME/case/check_lockedfiles.py
+4 −1 CIME/config.py
+56 −77 CIME/data/config/cesm/config_files.xml
+0 −6 CIME/hist_utils.py
+185 −8 CIME/locked_files.py
+1 −1 CIME/non_py/cprnc
+1 −1 CIME/tests/base.py
+6 −4 CIME/tests/test_sys_cime_case.py
+4 −1 CIME/tests/test_sys_create_newcase.py
+3 −1 CIME/tests/test_sys_full_system.py
+1 −1 CIME/tests/test_unit_case.py
+55 −0 CIME/tests/test_unit_config.py
+344 −0 CIME/tests/test_unit_locked_files.py
+3 −1 CIME/utils.py
+4 −2 CIME/wait_for_tests.py
+0 −1 doc/requirements.txt
+0 −15 doc/source/_static/custom.css
+0 −23 doc/source/_static/pop_ver.js
+0 −3 doc/source/_templates/layout.html
+64 −0 doc/source/_templates/versions.html
+27 −13 doc/source/conf.py
+10 −13 doc/source/users_guide/cime-dir.rst
+62 −0 doc/source/users_guide/components.rst
+31 −25 doc/source/users_guide/create-a-case.rst
+4 −4 doc/source/users_guide/index.rst
+53 −21 doc/source/users_guide/introduction-and-overview.rst
+29 −7 doc/source/users_guide/setting-up-a-case.rst
+245 −170 doc/source/users_guide/testing.rst
+7 −4 doc/source/what_cime/index.rst
+3 −0 docker/Dockerfile
291 changes: 221 additions & 70 deletions cime_config/config_grids.xml

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions cime_config/machines/cmake_macros/nvidiagpu_muller-gpu.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ if (COMP_NAME STREQUAL gptl)
endif()
string(APPEND CPPDEFS " -DTHRUST_IGNORE_CUB_VERSION_CHECK")
string(APPEND CMAKE_CUDA_FLAGS " -ccbin CC -O2 -arch sm_80 --use_fast_math")
string(APPEND CMAKE_EXE_LINKER_FLAGS " -acc -gpu=cc70,cc60 -Minfo=accel")
set(CMAKE_CUDA_ARCHITECTURES "80")
string(APPEND CMAKE_Fortran_FLAGS " -acc -gpu=cc80 -Minfo=accel")
string(APPEND CMAKE_EXE_LINKER_FLAGS " -acc -gpu=cc80 -Minfo=accel")
set(SCC "cc")
set(SCXX "CC")
set(SFC "ftn")
string(APPEND CMAKE_Fortran_FLAGS " -acc -gpu=cc70,cc60 -Minfo=accel")
5 changes: 3 additions & 2 deletions cime_config/machines/cmake_macros/nvidiagpu_pm-gpu.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ if (COMP_NAME STREQUAL gptl)
endif()
string(APPEND CPPDEFS " -DTHRUST_IGNORE_CUB_VERSION_CHECK")
string(APPEND CMAKE_CUDA_FLAGS " -ccbin CC -O2 -arch sm_80 --use_fast_math")
string(APPEND CMAKE_EXE_LINKER_FLAGS " -acc -gpu=cc70,cc60 -Minfo=accel")
set(CMAKE_CUDA_ARCHITECTURES "80")
string(APPEND CMAKE_Fortran_FLAGS " -acc -gpu=cc80 -Minfo=accel")
string(APPEND CMAKE_EXE_LINKER_FLAGS " -acc -gpu=cc80 -Minfo=accel")
set(SCC "cc")
set(SCXX "CC")
set(SFC "ftn")
string(APPEND CMAKE_Fortran_FLAGS " -acc -gpu=cc70,cc60 -Minfo=accel")
49 changes: 30 additions & 19 deletions cime_config/machines/config_machines.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2859,34 +2859,45 @@
<command name="load">anaconda3/5.2.0</command>
</modules>
<modules compiler="intel">
<command name="load">intel/18.0.4-443hhug</command>
<command name="load">intel-mkl/2018.4.274-jwaeshj</command>
<command name="load">hdf5/1.10.5-3mk3uik</command>
<command name="load">netcdf/4.7.0-krelxcz</command>
<command name="load">netcdf-fortran/4.4.5-74lj75q</command>
<command name="load">gcc/7.4.0</command>
<command name="load">intel/20.0.4-lednsve</command>
<command name="load">intel-mkl/2020.4.304-voqlapk</command>
</modules>
<modules compiler="intel" mpilib="impi">
<command name="load">intel-mpi/2018.4.274-4hmwfl6</command>
<command name="load">parallel-netcdf/1.11.0-acswzws</command>
<command name="load">intel-mpi/2019.9.304-i42whlw</command>
<command name="load">hdf5/1.10.7-ugvomvt</command>
<command name="load">netcdf-c/4.4.1-blyisdg</command>
<command name="load">netcdf-cxx/4.2-gkqc6fq</command>
<command name="load">netcdf-fortran/4.4.4-eanrh5t</command>
<command name="load">parallel-netcdf/1.11.0-y3nmmej</command>
</modules>
<modules compiler="intel" mpilib="mvapich">
<command name="load">mvapich2/2.3.1-verbs-omjz3ck</command>
<command name="load">parallel-netcdf/1.11.2-7fy6qz3</command>
<command name="load">mvapich2/2.3.6-verbs-x4iz7lq</command>
<command name="load">hdf5/1.10.7-igh6foh</command>
<command name="load">netcdf-c/4.4.1-gei7x7w</command>
<command name="load">netcdf-cxx/4.2-db2f5or</command>
<command name="load">netcdf-fortran/4.4.4-b4ldb3a</command>
<command name="load">parallel-netcdf/1.11.0-kj4jsvt</command>
</modules>
<modules compiler="gnu">
<command name="load">gcc/8.2.0-g7hppkz</command>
<command name="load">intel-mkl/2018.4.274-2amycpi</command>
<command name="load">hdf5/1.8.16-mz7lmxh</command>
<command name="load">netcdf/4.4.1-xkjcghm</command>
<command name="load">netcdf-fortran/4.4.4-mpstomu</command>
<command name="load">gcc/8.2.0-xhxgy33</command>
<command name="load">intel-mkl/2020.4.304-d6zw4xa</command>
</modules>
<modules compiler="gnu" mpilib="impi">
<command name="load">intel-mpi/2018.4.274-ozfo327</command>
<command name="load">parallel-netcdf/1.11.0-filvnis</command>
<command name="load">intel-mpi/2019.9.304-rxpzd6p</command>
<command name="load">hdf5/1.10.7-oy6d2nm</command>
<command name="load">netcdf-c/4.4.1-fysjgfx</command>
<command name="load">netcdf-cxx/4.2-oaiw2v6</command>
<command name="load">netcdf-fortran/4.4.4-kxgkaop</command>
<command name="load">parallel-netcdf/1.11.0-fce7akl</command>
</modules>
<modules compiler="gnu" mpilib="mvapich">
<command name="load">mvapich2/2.3-bebop-3xi4hiu</command>
<command name="load">parallel-netcdf/1.11.2-hfn33fd</command>
<command name="load">mvapich2/2.3-bebop-a66r4jf</command>
<command name="load">hdf5/1.10.5-ejeshwh</command>
<command name="load">netcdf/4.4.1-ve2zfkw</command>
<command name="load">netcdf-cxx/4.2-2rkopdl</command>
<command name="load">netcdf-fortran/4.4.4-thtylny</command>
<command name="load">parallel-netcdf/1.11.0-kozyofv</command>
</modules>
</module_system>
<RUNDIR>$CIME_OUTPUT_ROOT/$CASE/run</RUNDIR>
Expand All @@ -2901,7 +2912,7 @@
<environment_variables mpilib="!mpi-serial">
<env name="PNETCDF_PATH">$SHELL{dirname $(dirname $(which pnetcdf_version))}</env>
</environment_variables>
<environment_variables compiler="gnu">
<environment_variables>
<env name="HDF5_ROOT">$SHELL{which h5dump | xargs dirname | xargs dirname}</env>
</environment_variables>
<environment_variables BUILD_THREADED="TRUE">
Expand Down
185 changes: 183 additions & 2 deletions components/data_comps/drof/src/drof_comp_mod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ module drof_comp_mod
use drof_shr_mod , only: rest_file ! namelist input
use drof_shr_mod , only: rest_file_strm ! namelist input
use drof_shr_mod , only: nullstr

#ifdef HAVE_MOAB
use seq_comm_mct, only : mrofid ! id of moab rof app
use seq_comm_mct, only : mbrof_data ! turn on if the data rof
use iso_c_binding
#endif
!
! !PUBLIC TYPES:
implicit none
Expand Down Expand Up @@ -67,6 +71,12 @@ subroutine drof_comp_init(Eclock, x2r, r2x, &
SDROF, gsmap, ggrid, mpicom, compid, my_task, master_task, &
inst_suffix, inst_name, logunit, read_restart)

#ifdef HAVE_MOAB
use iMOAB, only: iMOAB_DefineTagStorage, iMOAB_GetDoubleTagStorage, &
iMOAB_SetIntTagStorage, iMOAB_SetDoubleTagStorage, &
iMOAB_ResolveSharedEntities, iMOAB_CreateVertices, &
iMOAB_GetMeshInfo, iMOAB_UpdateMeshInfo, iMOAB_WriteMesh
#endif
! !DESCRIPTION: initialize drof model
implicit none

Expand All @@ -92,7 +102,19 @@ subroutine drof_comp_init(Eclock, x2r, r2x, &
logical :: exists ! file existance logical
integer(IN) :: nu ! unit number
character(CL) :: calendar ! model calendar

#ifdef HAVE_MOAB
character*400 tagname
real(R8) latv, lonv
integer iv, tagindex, ilat, ilon, ierr !, arrsize, nfields
real(R8), allocatable, target :: data(:)
integer(IN), pointer :: idata(:) ! temporary
real(r8), dimension(:), allocatable :: moab_vert_coords ! temporary
!real(R8), allocatable, target :: vtags_zero(:, :)

#ifdef MOABDEBUG
character*100 outfile, wopts
#endif
#endif
!--- formats ---
character(*), parameter :: F00 = "('(drof_comp_init) ',8a)"
character(*), parameter :: F0L = "('(drof_comp_init) ',a, l2)"
Expand Down Expand Up @@ -164,6 +186,121 @@ subroutine drof_comp_init(Eclock, x2r, r2x, &

call t_stopf('drof_initmctdom')


#ifdef HAVE_MOAB
ilat = mct_aVect_indexRA(ggrid%data,'lat')
ilon = mct_aVect_indexRA(ggrid%data,'lon')
allocate(moab_vert_coords(lsize*3))
do iv = 1, lsize
lonv = ggrid%data%rAttr(ilon, iv) * SHR_CONST_PI/180.
latv = ggrid%data%rAttr(ilat, iv) * SHR_CONST_PI/180.
moab_vert_coords(3*iv-2)=COS(latv)*COS(lonv)
moab_vert_coords(3*iv-1)=COS(latv)*SIN(lonv)
moab_vert_coords(3*iv )=SIN(latv)
enddo

! create the vertices with coordinates from MCT domain
ierr = iMOAB_CreateVertices(mrofid, lsize*3, 3, moab_vert_coords)
if (ierr .ne. 0) &
call shr_sys_abort('Error: fail to create MOAB vertices in land model')

tagname='GLOBAL_ID'//C_NULL_CHAR
ierr = iMOAB_DefineTagStorage(mrofid, tagname, &
0, & ! dense, integer
1, & ! number of components
tagindex )
if (ierr .ne. 0) &
call shr_sys_abort('Error: fail to retrieve GLOBAL_ID tag ')

! get list of global IDs for Dofs
call mct_gsMap_orderedPoints(gsMap, my_task, idata)

ierr = iMOAB_SetIntTagStorage ( mrofid, tagname, lsize, &
0, & ! vertex type
idata)
if (ierr .ne. 0) &
call shr_sys_abort('Error: fail to set GLOBAL_ID tag ')

ierr = iMOAB_ResolveSharedEntities( mrofid, lsize, idata );
if (ierr .ne. 0) &
call shr_sys_abort('Error: fail to resolve shared entities')

deallocate(moab_vert_coords)
deallocate(idata)

ierr = iMOAB_UpdateMeshInfo( mrofid )
if (ierr .ne. 0) &
call shr_sys_abort('Error: fail to update mesh info ')

allocate(data(lsize))
ierr = iMOAB_DefineTagStorage( mrofid, "area:aream:frac:mask"//C_NULL_CHAR, &
1, & ! dense, double
1, & ! number of components
tagindex )
if (ierr > 0 ) &
call shr_sys_abort('Error: fail to create tag: area:aream:frac:mask' )

data(:) = ggrid%data%rAttr(mct_aVect_indexRA(ggrid%data,'area'),:)
tagname='area'//C_NULL_CHAR
ierr = iMOAB_SetDoubleTagStorage ( mrofid, tagname, lsize, &
0, & ! set data on vertices
data)
if (ierr > 0 ) &
call shr_sys_abort('Error: fail to get area tag ')

! set the same data for aream (model area) as area
! data(:) = ggrid%data%rAttr(mct_aVect_indexRA(ggrid%data,'aream'),:)
tagname='aream'//C_NULL_CHAR
ierr = iMOAB_SetDoubleTagStorage ( mrofid, tagname, lsize, &
0, & ! set data on vertices
data)
if (ierr > 0 ) &
call shr_sys_abort('Error: fail to set aream tag ')

data(:) = ggrid%data%rAttr(mct_aVect_indexRA(ggrid%data,'mask'),:)
tagname='mask'//C_NULL_CHAR
ierr = iMOAB_SetDoubleTagStorage ( mrofid, tagname, lsize, &
0, & ! set data on vertices
data)
if (ierr > 0 ) &
call shr_sys_abort('Error: fail to set mask tag ')

data(:) = ggrid%data%rAttr(mct_aVect_indexRA(ggrid%data,'frac'),:)
tagname='frac'//C_NULL_CHAR
ierr = iMOAB_SetDoubleTagStorage ( mrofid, tagname, lsize, &
0, & ! set data on vertices
data)
if (ierr > 0 ) &
call shr_sys_abort('Error: fail to set frac tag ')

deallocate(data)

! define tags
ierr = iMOAB_DefineTagStorage( mrofid, trim(seq_flds_x2r_fields)//C_NULL_CHAR, &
1, & ! dense, double
1, & ! number of components
tagindex )
if (ierr > 0 ) &
call shr_sys_abort('Error: fail to create seq_flds_x2r_fields tags ')

ierr = iMOAB_DefineTagStorage( mrofid, trim(seq_flds_r2x_fields)//C_NULL_CHAR, &
1, & ! dense, double
1, & ! number of components
tagindex )
if (ierr > 0 ) &
call shr_sys_abort('Error: fail to create seq_flds_r2x_fields tags ')
mbrof_data = .true. ! will have effects
#ifdef MOABDEBUG
! debug test
outfile = 'RofDataMesh.h5m'//C_NULL_CHAR
wopts = ';PARALLEL=WRITE_PART'//C_NULL_CHAR !
! write out the mesh file to disk
ierr = iMOAB_WriteMesh(mrofid, trim(outfile), trim(wopts))
if (ierr .ne. 0) then
call shr_sys_abort(subname//' ERROR in writing data mesh rof ')
endif
#endif
#endif
!----------------------------------------------------------------------------
! Initialize MCT attribute vectors
!----------------------------------------------------------------------------
Expand Down Expand Up @@ -256,6 +393,13 @@ subroutine drof_comp_run(EClock, x2r, r2x, &
SDROF, gsmap, ggrid, mpicom, compid, my_task, master_task, &
inst_suffix, logunit, case_name)

#ifdef MOABDEBUG
use iMOAB, only: iMOAB_WriteMesh
#endif
#ifdef HAVE_MOAB
use seq_flds_mod , only: seq_flds_r2x_fields
use seq_flds_mod , only: moab_set_tag_from_av
#endif
! !DESCRIPTION: run method for drof model
implicit none

Expand Down Expand Up @@ -285,7 +429,18 @@ subroutine drof_comp_run(EClock, x2r, r2x, &
integer(IN) :: nu ! unit number
integer(IN) :: nflds_r2x
character(len=18) :: date_str
#ifdef HAVE_MOAB
real(R8), allocatable, target :: datam(:)
type(mct_list) :: temp_list
integer :: size_list, index_list
type(mct_string) :: mctOStr !
character*400 tagname, mct_field
#ifdef MOABDEBUG
integer :: cur_drof_stepno, ierr
character*100 outfile, wopts, lnum
#endif

#endif
character(*), parameter :: F00 = "('(drof_comp_run) ',8a)"
character(*), parameter :: F04 = "('(drof_comp_run) ',2a,2i8,'s')"
character(*), parameter :: subName = "(drof_comp_run) "
Expand Down Expand Up @@ -384,6 +539,32 @@ subroutine drof_comp_run(EClock, x2r, r2x, &
!----------------------------------------------------------------------------
! Log output for model date
!----------------------------------------------------------------------------
#ifdef HAVE_MOAB
lsize = mct_avect_lsize(r2x) ! is it the same as mct_avect_lsize(avstrm) ?
allocate(datam(lsize)) !
call mct_list_init(temp_list ,seq_flds_r2x_fields)
size_list=mct_list_nitem (temp_list)
do index_list = 1, size_list
call mct_list_get(mctOStr,index_list,temp_list)
mct_field = mct_string_toChar(mctOStr)
tagname= trim(mct_field)//C_NULL_CHAR
call moab_set_tag_from_av(tagname, r2x, index_list, mrofid, datam, lsize) ! loop over all a2x fields, not just a few
enddo
call mct_list_clean(temp_list)
deallocate(datam) ! maybe we should keep it around, deallocate at the final only?

#ifdef MOABDEBUG
call seq_timemgr_EClockGetData( EClock, stepno=cur_drof_stepno )
write(lnum,"(I0.2)")cur_drof_stepno
outfile = 'drof_comp_run_'//trim(lnum)//'.h5m'//C_NULL_CHAR
wopts = 'PARALLEL=WRITE_PART'//C_NULL_CHAR
ierr = iMOAB_WriteMesh(mrofid, outfile, wopts)
if (ierr > 0 ) then
write(logunit,*) 'Failed to write data rof component state '
endif
#endif

#endif

call t_startf('drof_run2')
if (my_task == master_task) then
Expand Down
Loading
Loading