Skip to content

Instantly share code, notes, and snippets.

@jayeshkrishna
jayeshkrishna / build_uELM_AKSPx10x10.sh
Last active July 30, 2024 20:19
E3SM ELM 1kmx1km run script for summit
#!/bin/bash
set -e
# Create a test case uELM_AKSP_I1850uELMCNPRDCTCBC
E3SM_DIN="/gpfs/alpine2/cli180/proj-shared/wangd/inputdata"
#E3SM_SRCROOT="/gpfs/alpine2/cli180/proj-shared/wangd/uELM"
E3SM_SRCROOT="/gpfs/alpine2/cli180/proj-shared/jayesh/daliwang_uELM"
@jayeshkrishna
jayeshkrishna / cime fix
Created September 28, 2021 19:12
E3SM + gnu 11 fixes required for ANL GCE (v2.0.0-rc4-467-ge7a7dc2d36 + cime fix + sbetr fix = https://github.com/BeTR-biogeochemistry-modeling/sbetr/commit/51be6d5f858145654d3c94c2985b3e347dd5a1d4)
diff --git a/scripts/lib/CIME/XML/env_mach_specific.py b/scripts/lib/CIME/XML/env_mach_specific.py
index 86b0ff869..3d477efc5 100644
--- a/scripts/lib/CIME/XML/env_mach_specific.py
+++ b/scripts/lib/CIME/XML/env_mach_specific.py
@@ -149,7 +149,7 @@ class EnvMachSpecific(EnvBase):
# setup script if it exists.
init_path = self.get_module_system_init_path("sh")
if init_path:
- source_cmd = "source {} && ".format(init_path)
+ source_cmd = ". {} && ".format(init_path)
@jayeshkrishna
jayeshkrishna / build_scorpio.sh
Last active September 21, 2021 16:30
Scorpio build script for anl gce nodes
#!/bin/bash
module load autoconf/2.69-tz6eue5
module load automake/1.16.3-fm5m6qc
module load libtool/2.4.6-jdxbjft
module load m4/1.4.19-wq3bm42
module load cmake/3.20.5-yjp2hz6
module load gcc/11.1.0-5ikoznk
module load zlib/1.2.11-smoyzzo
#module load mpich/3.4.2-gnu
@jayeshkrishna
jayeshkrishna / pftvarcon.F90
Created July 30, 2021 15:31
Define pftname for crop + no crop case
diff --git a/components/elm/src/main/pftvarcon.F90 b/components/elm/src/main/pftvarcon.F90
index e2bffb5..eae421d 100644
--- a/components/elm/src/main/pftvarcon.F90
+++ b/components/elm/src/main/pftvarcon.F90
@@ -207,7 +207,7 @@ module pftvarcon
real(r8), allocatable :: root_dmx(:) !maximum root depth
integer, parameter :: pftname_len = 40 ! max length of pftname
- character(len=pftname_len) :: pftname(0:mxpft) !PFT description
+ character(len=:), allocatable :: pftname(:) !PFT description
====== omp_info ======
Package: Open MPI userx@xxxlogin1.xxxx.xxx.gov Distribution
Open MPI: 5.1.0a1
Open MPI repo revision: v2.x-dev-8678-g18648d307b
Open MPI release date: Unreleased developer copy
MPI API: 3.1.0
Ident string: 5.1.0a1
Prefix: /xxx/soft/openmpi/master/chrys/intel-20.0.4
Configured architecture: x86_64-pc-linux-gnu
Configured by: userx
@jayeshkrishna
jayeshkrishna / argparser.cpp
Created February 3, 2021 14:25
OpenMPI 4.0.4 + UCX 1.9.0 data corruption issue - test program and details
#include "mpi.h"
#include <iostream>
#include <string>
#include <vector>
#include <map>
#include <regex>
#include <cassert>
#include <stdexcept>
#include "argparser.h"
diff --git a/cime/config/e3sm/machines/config_compilers.xml b/cime/config/e3s
m/machines/config_compilers.xml
index 35ff773..257b85f 100644
--- a/cime/config/e3sm/machines/config_compilers.xml
+++ b/cime/config/e3sm/machines/config_compilers.xml
@@ -1793,6 +1793,34 @@ ntel/x86_64/2013/composer_xe_2013/composer_xe_201
3_sp1.3.174/mkl/include </base>
<SUPPORTS_CXX>TRUE</SUPPORTS_CXX>
</compiler>
@jayeshkrishna
jayeshkrishna / ecp_master_patch_summit_cpu_101419_01.patch
Created October 14, 2019 17:55
ECP master changes for summit-cpu
diff --git a/cime/config/e3sm/machines/config_compilers.xml b/cime/config/e3s
m/machines/config_compilers.xml
index 35ff773..257b85f 100644
--- a/cime/config/e3sm/machines/config_compilers.xml
+++ b/cime/config/e3sm/machines/config_compilers.xml
@@ -1793,6 +1793,34 @@ ntel/x86_64/2013/composer_xe_2013/composer_xe_201
3_sp1.3.174/mkl/include </base>
<SUPPORTS_CXX>TRUE</SUPPORTS_CXX>
</compiler>
@jayeshkrishna
jayeshkrishna / master-merge-WH-JUL2019.patch
Created July 15, 2019 21:43
Fixes required to build master-merge-WH-JUL2019 in ECP repo
diff --git a/cime/config/e3sm/machines/config_compilers.xml b/cime/config/e3s
m/machines/config_compilers.xml
index d29ee09..3e1e7c8 100644
--- a/cime/config/e3sm/machines/config_compilers.xml
+++ b/cime/config/e3sm/machines/config_compilers.xml
@@ -2049,6 +2049,8 @@ ntel/x86_64/2013/composer_xe_2013/composer_xe_2013
_sp1.3.174/mkl/include </base>
<PIO_FILESYSTEM_HINTS>gpfs</PIO_FILESYSTEM_HINTS>
<SCC> pgcc </SCC>
<SFC> pgfortran </SFC>
diff --git a/cime/config/acme/machines/config_machines.xml b/cime/config/acme/machines/config_machines.xml
index 1b5cc3d..4248ea2 100644
--- a/cime/config/acme/machines/config_machines.xml
+++ b/cime/config/acme/machines/config_machines.xml
@@ -1019,10 +1019,10 @@
<env name="KMP_HOT_TEAMS_MODE">1</env>
<env name="KMP_HOT_TEAMS_MAX_LEVEL">1</env>
</environment_variables>
- <environment_variables SMP_PRESENT="FALSE">
- <env mpilib="mvapich" name="MV2_ENABLE_AFFINITY">1</env>