Skip to content

Commit

Permalink
Merge branch 'develop' into release/MAPL-v3
Browse files Browse the repository at this point in the history
  • Loading branch information
mathomp4 committed Jan 9, 2025
2 parents 8329ca4 + 490bd40 commit 4037714
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ ecbuild_add_executable (
# To fix this, we explicitly set the linker language to Fortran.
set_target_properties (GEOSgcm.x PROPERTIES LINKER_LANGUAGE Fortran)

# Using JeMalloc will be optional, default OFF
option (USE_JEMALLOC "Use JeMalloc" OFF)
if (USE_JEMALLOC)
find_package (JeMalloc REQUIRED)
target_link_libraries (GEOSgcm.x JeMalloc::JeMalloc)
endif ()

ecbuild_add_executable (
TARGET idfupd.x
SOURCES idfupd.F90
Expand Down
2 changes: 2 additions & 0 deletions scm_run.j
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,6 @@ cd $EXPDIR

$GEOSBIN/construct_extdata_yaml_list.py GEOS_ChemGridComp.rc

echo "file_weights: true" >> extdata.yaml

$RUN_CMD 1 ./GEOSgcm.x --logging_config 'logging.yaml'
6 changes: 6 additions & 0 deletions scm_setup
Original file line number Diff line number Diff line change
Expand Up @@ -233,9 +233,13 @@ then
SED="$(command -v sed) "
ISED="$SED -i.macbak "
fi
PRELOAD_COMMAND='DYLD_INSERT_LIBRARIES'
LD_LIBRARY_PATH_CMD='DYLD_LIBRARY_PATH'
else
SED="$(command -v sed) "
ISED="$SED -i "
PRELOAD_COMMAND='LD_PRELOAD'
LD_LIBRARY_PATH_CMD='LD_LIBRARY_PATH'
fi

case $selected_case in
Expand Down Expand Up @@ -513,6 +517,8 @@ s?@BATCH_TASKS?$BATCH_TASKS?g
s?@BATCH_TIME?$BATCH_TIME?g
s?@BATCH_GROUP?$BATCH_GROUP?g
s?@BATCH_JOBNAME?$BATCH_JOBNAME?g
s?@PRELOAD_COMMAND?$PRELOAD_COMMAND?g
s?@LD_LIBRARY_PATH_CMD?$LD_LIBRARY_PATH_CMD?g
EOF

$ISED -f $expdir/sedfile $expdir/scm_run.j
Expand Down

0 comments on commit 4037714

Please sign in to comment.