Skip to content

Commit

Permalink
Merge pull request #264 from GEOS-ESM/feature/wjiang/geosachem_rst_na…
Browse files Browse the repository at this point in the history
…me_changed

geocachem ==> achem name changed
  • Loading branch information
sdrabenh authored Jun 8, 2022
2 parents 159202d + 60684c2 commit 64fbfad
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 34 deletions.
40 changes: 9 additions & 31 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,42 +1,20 @@
version: 2.1

orbs:
circleci-tools: geos-esm/circleci-tools@0.10.0
ci: geos-esm/circleci-tools@1

workflows:
build-test:
jobs:
- build-GEOSgcm:
# Build GEOSgcm
- ci/build:
name: build-GEOSgcm-on-<< matrix.compiler >>
context:
- docker-hub-creds
matrix:
parameters:
compiler: [gfortran, ifort]
context:
- docker-hub-creds

jobs:
build-GEOSgcm:
parameters:
compiler:
type: string
executor:
name: circleci-tools/<< parameters.compiler >>
resource_class: large
working_directory: /root/project
steps:
- run:
name: "GMAO_Shared branch"
command: echo ${CIRCLE_BRANCH}
- circleci-tools/versions:
compiler: << parameters.compiler >>
- circleci-tools/checkout_fixture
- circleci-tools/mepoclone
- circleci-tools/mepodevelop
- circleci-tools/checkout_if_exists
- circleci-tools/cmake:
compiler: << parameters.compiler >>
- circleci-tools/buildinstall
- circleci-tools/compress_artifacts
- store_artifacts:
path: /logfiles

repo: GEOSgcm
checkout_fixture: true
mepodevelop: true
persist_workspace: false # Needs to be true to run fv3/gcm experiment, costs extra
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed

- Changed restart file geosachem to achem in regrid.pl
- Updated CI to modern v1 orb

### Fixed

- More updates to CMake to more canonical CMake style (NetCDF, ESMF, etc.). These were missed in previous go-arounds as they are only built with ADAS. (Requires ESMA_cmake v3.15.1)
Expand Down
6 changes: 3 additions & 3 deletions GEOS_Util/post/regrid.pl
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@
%UPPERAIR_OPT = ("agcm_import_rst" => 1,
"agcm_internal_rst" => 1,
"carma_internal_rst" => 1,
"geosachem_internal_rst" => 1,
"achem_internal_rst" => 1,
"geoschemchem_internal_rst" => 1,
"gmichem_internal_rst" => 1,
"gocart_internal_rst" => 1,
Expand Down Expand Up @@ -2467,7 +2467,7 @@ sub regrid_upperair_rsts_CS {
$DYN = rstname($expid, "fvcore_internal_rst", $rstIN_template);
$MOIST = rstname($expid, "moist_internal_rst", $rstIN_template);

$ACHEM = rstname($expid, "geosachem_internal_rst", $rstIN_template);
$ACHEM = rstname($expid, "achem_internal_rst", $rstIN_template);
$CCHEM = rstname($expid, "geoschemchem_internal_rst", $rstIN_template);
$CARMA = rstname($expid, "carma_internal_rst", $rstIN_template);
$AGCM = rstname($expid, "agcm_import_rst", $rstIN_template);
Expand Down Expand Up @@ -2554,7 +2554,7 @@ sub regrid_upperair_rsts_CS {
/bin/touch input.nml
if( ".$ACHEM" != . ) /bin/ln -s $ACHEM geosachem_internal_restart_in
if( ".$ACHEM" != . ) /bin/ln -s $ACHEM achem_internal_restart_in
if( ".$CCHEM" != . ) /bin/ln -s $CCHEM geoschemchem_internal_restart_in
if( ".$CARMA" != . ) /bin/ln -s $CARMA carma_internal_restart_in
if( ".$AGCM" != . ) /bin/ln -s $AGCM agcm_import_restart_in
Expand Down

0 comments on commit 64fbfad

Please sign in to comment.