Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

run_neon --overwrite is ignored #2884

Open
samsrabin opened this issue Nov 18, 2024 · 0 comments · May be fixed by #2886
Open

run_neon --overwrite is ignored #2884

samsrabin opened this issue Nov 18, 2024 · 0 comments · May be fixed by #2886
Labels
bug something is working incorrectly

Comments

@samsrabin
Copy link
Collaborator

Brief summary of bug

run_neon --overwrite option is ignored. I also think the error message needs to be reworked.

General bug information

CTSM version you are using: ctsm5.3.012

Does this bug cause significantly incorrect results in the model's science? No

Configurations affected: All

Details of bug

The following patch fixes it:

diff --git a/python/ctsm/site_and_regional/neon_site.py b/python/ctsm/site_and_regional/neon_site.py
index 70414d9e5..ced4c4c64 100755
--- a/python/ctsm/site_and_regional/neon_site.py
+++ b/python/ctsm/site_and_regional/neon_site.py
@@ -47,7 +47,8 @@ class NeonSite(TowerSite):
             user_mods_dirs = [
                 os.path.join(self.cesmroot, "cime_config", "usermods_dirs", "NEON", self.name)
             ]
-        case_path = super().build_base_case(cesmroot, output_root, res, compset, user_mods_dirs)
+        case_path = super().build_base_case(cesmroot, output_root, res, compset, user_mods_dirs,
+                                            overwrite=overwrite)

         return case_path

Important details of your setup / configuration so we can reproduce the bug

Tested on Derecho.

# Interrupt this after "base case created"
python tools/site_and_regional/run_neon --neon-sites ABBY --setup-only

# Then try again with --overwrite:
python tools/site_and_regional/run_neon --neon-sites ABBY --setup-only --overwrite

Important output or errors that show the problem

---- building a base case -------
ERROR: Existing base case is a historical type and should not be
                        --rerun with the --overwrite option

Bit about --rerun seems irrelevant, since I don't see that checked anywhere in the call stack.

@samsrabin samsrabin added the bug something is working incorrectly label Nov 18, 2024
samsrabin added a commit to samsrabin/CTSM that referenced this issue Nov 18, 2024
@samsrabin samsrabin linked a pull request Nov 18, 2024 that will close this issue
@ekluzek ekluzek added the next this should get some attention in the next week or two. Normally each Thursday SE meeting. label Dec 5, 2024
@samsrabin samsrabin removed the next this should get some attention in the next week or two. Normally each Thursday SE meeting. label Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something is working incorrectly
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants