E3SM icon indicating copy to clipboard operation
E3SM copied to clipboard

broken sathist functionality

Open mahf708 opened this issue 1 year ago • 0 comments

There are two modes of failure:

  1. The output files are empty
  2. The model eventually segfaults with something related PIO

--

Repro:

check out recent code and apply the following patch

[PATCH] add sathist testmod

From 4b35a603df01d05e941e1ac246c231d302151e4c Mon Sep 17 00:00:00 2001
From: mahf708 <[email protected]>
Date: Fri, 9 Aug 2024 10:55:47 -0500
Subject: [PATCH] add sathist testmod

---
 .../testdefs/testmods_dirs/eam/sathist_F2010/readme        | 1 +
 .../testmods_dirs/eam/sathist_F2010/shell_commands         | 3 +++
 .../testdefs/testmods_dirs/eam/sathist_F2010/user_nl_eam   | 7 +++++++
 3 files changed, 11 insertions(+)
 create mode 100644 components/eam/cime_config/testdefs/testmods_dirs/eam/sathist_F2010/readme
 create mode 100644 components/eam/cime_config/testdefs/testmods_dirs/eam/sathist_F2010/shell_commands
 create mode 100644 components/eam/cime_config/testdefs/testmods_dirs/eam/sathist_F2010/user_nl_eam

diff --git a/components/eam/cime_config/testdefs/testmods_dirs/eam/sathist_F2010/readme b/components/eam/cime_config/testdefs/testmods_dirs/eam/sathist_F2010/readme
new file mode 100644
index 000000000000..35f64eb4b9a1
--- /dev/null
+++ b/components/eam/cime_config/testdefs/testmods_dirs/eam/sathist_F2010/readme
@@ -0,0 +1 @@
+test for sat hist capability components/eam/src/control/sat_hist.F90
diff --git a/components/eam/cime_config/testdefs/testmods_dirs/eam/sathist_F2010/shell_commands b/components/eam/cime_config/testdefs/testmods_dirs/eam/sathist_F2010/shell_commands
new file mode 100644
index 000000000000..0dc0f9cc72c6
--- /dev/null
+++ b/components/eam/cime_config/testdefs/testmods_dirs/eam/sathist_F2010/shell_commands
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+./xmlchange RUN_STARTDATE=2015-01-01
diff --git a/components/eam/cime_config/testdefs/testmods_dirs/eam/sathist_F2010/user_nl_eam b/components/eam/cime_config/testdefs/testmods_dirs/eam/sathist_F2010/user_nl_eam
new file mode 100644
index 000000000000..42ffc6082c98
--- /dev/null
+++ b/components/eam/cime_config/testdefs/testmods_dirs/eam/sathist_F2010/user_nl_eam
@@ -0,0 +1,7 @@
+&satellite_options_nl
+ sathist_mfilt          = 10000,
+ sathist_track_infile   = '$DIN_LOC_ROOT/atm/waccm/sat/sathist_master_19700410-20150419_c20150616.nc'
+ sathist_hfilename_spec = '%c.sathist_master_19700410-20150419_c20150616.%y-%m-%d-%s.nc'
+ sathist_nclosest       = 1
+ sathist_ntimestep      = 1 
+ sathist_fincl          = 'T', 'PS'

a simple SMS test via $CODE_ROOT/cime/scripts/create_test SMS.ne4pg2_oQU480.F2010.$MACHINE_gnu.eam-sathist_F2010 will fail in PIO.

mahf708 avatar Aug 09 '24 15:08 mahf708