-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
1,952 additions
and
1,735 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,92 +1,64 @@ | ||
version: 2.1 | ||
|
||
executors: | ||
gcc-build-env: | ||
docker: | ||
- image: gmao/ubuntu20-geos-env-mkl:v6.2.8-openmpi_4.0.6-gcc_11.2.0 | ||
auth: | ||
username: $DOCKERHUB_USER | ||
password: $DOCKERHUB_AUTH_TOKEN | ||
environment: | ||
OMPI_ALLOW_RUN_AS_ROOT: 1 | ||
OMPI_ALLOW_RUN_AS_ROOT_CONFIRM: 1 | ||
OMPI_MCA_btl_vader_single_copy_mechanism: none | ||
resource_class: large | ||
#MEDIUM# resource_class: medium | ||
orbs: | ||
circleci-tools: geos-esm/circleci-tools@0.13.0 | ||
|
||
workflows: | ||
version: 2.1 | ||
build-and-test: | ||
jobs: | ||
- build-GOCART2G: | ||
name: build-GOCART2G-on-<< matrix.compiler >> | ||
matrix: | ||
parameters: | ||
compiler: [gfortran, ifort] | ||
context: | ||
- docker-hub-creds | ||
- build-GEOSgcm: | ||
name: build-GEOSgcm-on-<< matrix.compiler >> | ||
matrix: | ||
parameters: | ||
compiler: [gfortran, ifort] | ||
context: | ||
- docker-hub-creds | ||
|
||
jobs: | ||
build-GOCART2G: | ||
executor: gcc-build-env | ||
parameters: | ||
compiler: | ||
type: string | ||
executor: circleci-tools/<< parameters.compiler >> | ||
working_directory: /root/project | ||
steps: | ||
- checkout: | ||
path: GOCART | ||
- run: | ||
name: "Versions etc" | ||
command: mpirun --version && gfortran --version && echo $BASEDIR && pwd && ls | ||
- run: | ||
name: "Mepo clone external repos" | ||
command: | | ||
cd ${CIRCLE_WORKING_DIRECTORY}/GOCART | ||
mepo clone | ||
mepo status | ||
- run: | ||
name: "CMake" | ||
command: | | ||
cd ${CIRCLE_WORKING_DIRECTORY}/GOCART | ||
mkdir build | ||
cd build | ||
cmake .. -DBASEDIR=$BASEDIR/Linux -DCMAKE_Fortran_COMPILER=gfortran -DCMAKE_BUILD_TYPE=Debug -DUSE_F2PY=OFF -DMPIEXEC_PREFLAGS='--oversubscribe' | ||
- run: | ||
name: "Build GOCART2G_GridComp" | ||
command: | | ||
cd ${CIRCLE_WORKING_DIRECTORY}/GOCART/build | ||
make -j"$(nproc)" GOCART2G_GridComp | ||
#MEDIUM# make -j4 GOCART2G_GridComp | ||
- circleci-tools/versions: | ||
compiler: << parameters.compiler >> | ||
- circleci-tools/mepoclone: | ||
repo: GOCART | ||
- circleci-tools/cmake: | ||
repo: GOCART | ||
compiler: << parameters.compiler >> | ||
- circleci-tools/buildtarget: | ||
repo: GOCART | ||
target: GOCART2G_GridComp | ||
- circleci-tools/compress_artifacts | ||
- store_artifacts: | ||
path: /logfiles | ||
|
||
build-GEOSgcm: | ||
executor: gcc-build-env | ||
parameters: | ||
compiler: | ||
type: string | ||
executor: circleci-tools/<< parameters.compiler >> | ||
working_directory: /root/project | ||
steps: | ||
- run: | ||
name: "Checkout GEOSgcm fixture" | ||
command: | | ||
cd ${CIRCLE_WORKING_DIRECTORY} | ||
git clone https://github.com/GEOS-ESM/GEOSgcm.git | ||
- run: | ||
name: "Mepo clone external repos" | ||
command: | | ||
cd ${CIRCLE_WORKING_DIRECTORY}/GEOSgcm | ||
mepo clone | ||
mepo develop GEOSgcm_GridComp GEOSgcm_App | ||
mepo status | ||
- run: | ||
name: "Mepo checkout GOCART branch(es)" | ||
command: | | ||
cd ${CIRCLE_WORKING_DIRECTORY}/GEOSgcm | ||
mepo checkout-if-exists ${CIRCLE_BRANCH} | ||
mepo status | ||
- run: | ||
name: "CMake" | ||
command: | | ||
cd ${CIRCLE_WORKING_DIRECTORY}/GEOSgcm | ||
mkdir build | ||
cd build | ||
cmake .. -DBASEDIR=$BASEDIR/Linux -DCMAKE_Fortran_COMPILER=gfortran -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=${CIRCLE_WORKING_DIRECTORY}/workspace/install-GEOSgcm -DUSE_F2PY=OFF | ||
- run: | ||
name: "Build and install" | ||
command: | | ||
cd ${CIRCLE_WORKING_DIRECTORY}/GEOSgcm/build | ||
make -j"$(nproc)" install | ||
#MEDIUM# make -j4 install | ||
- 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Global Editor Config for MAPL | ||
# | ||
# This is an ini style configuration. See http://editorconfig.org/ for more information on this file. | ||
# | ||
# Top level editor config. | ||
root = true | ||
|
||
# Always use Unix style new lines with new line ending on every file and trim whitespace | ||
[*] | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
# Python: PEP8 defines 4 spaces for indentation | ||
[*.py] | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
# YAML format, 2 spaces | ||
[{*.yaml,*.yml}] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
# CMake (from KitWare: https://github.com/Kitware/CMake/blob/master/.editorconfig) | ||
[{CMakeLists.txt,*.cmake,*.rst}] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
# Markdown | ||
[*.md] | ||
trim_trailing_whitespace = true | ||
indent_style = space |
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.