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

default finidat_interp_dest file name should have instance number #46

Closed
billsacks opened this issue Dec 16, 2017 · 14 comments
Closed

default finidat_interp_dest file name should have instance number #46

billsacks opened this issue Dec 16, 2017 · 14 comments
Labels
bug something is working incorrectly priority: high High priority to fix/merge soon, e.g., because it is a problem in important configurations
Milestone

Comments

@billsacks
Copy link
Member

Bill Sacks < sacks@ucar.edu > - 2016-02-26 10:49:37 -0700
Bugzilla Id: 2289
Bugzilla CC: andre@ucar.edu, fischer@ucar.edu, jedwards@ucar.edu, mvertens@ucar.edu, raeder@ucar.edu, rfisher@ucar.edu,

Kevin Raeder pointed out that the default file name for finidat_interp_dest ('finidat_interp_dest.nc') leads init_interp to stomp on itself when using use_init_interp with multi-instance. We should change the default to have the instance number in the file name.

In the meantime, the workaround is to explicitly specify finidat_interp_dest in each instance's user_nl_clm.

@billsacks billsacks added this to the clm5 milestone Dec 16, 2017
@billsacks billsacks added the priority: high High priority to fix/merge soon, e.g., because it is a problem in important configurations label Dec 16, 2017
@billsacks
Copy link
Member Author

Bill Sacks < sacks@ucar.edu > - 2017-06-05 21:07:40 -0600

One possible solution would be to give build-namelist knowledge of the instance index.

This is similar to what's done for CISM - and specifically what I'm working on right now to get multi-instance branch / hybrid runs to work right. For CISM, buildnml passes the inst_string to build-namelist as a command-line argument; then this inst_string can be used to construct file names. We could do something similar for CLM.

(Note that finidat_interp_dest is not currently invoked by CLM's build-namelist, so we just use the hard-coded default unless the user explicitly specifies it. The above solution would require putting finidat_interp_dest in the lnd_in file, which is probably a good thing anyway.)

@billsacks
Copy link
Member Author

Bill Sacks < sacks@ucar.edu > - 2017-10-17 16:10:31 -0600

Changing this to P1 because I think it's important to resolve this for the release.

@billsacks
Copy link
Member Author

Fixing this will hopefully resolve #60

@billsacks billsacks added the bug label Jan 19, 2018
@billsacks billsacks added bug something is working incorrectly and removed type: bug - science labels Feb 8, 2018
@ekluzek
Copy link
Collaborator

ekluzek commented Feb 23, 2018

Turns out sending inst_string down through the namelist isn't the right way to do this. clm already has this same thing as "inst_suffix". So there's no reason to pass a new namelist item down. I also ran into the problem of needing to have inst_string set in a namelist prior to finidat_interp_dest. So it's cleaner to use inst_suffix.

@timhoar
Copy link

timhoar commented Mar 19, 2018

I am using the branches/usedataassim ... are there any sourcemods I can use to test where this is at the moment? I am a bit confused on what I can do (right now) to run. As a side note - it seems that if I use netcdf instead of pnetcdf - the single file seems useful to all 80 of my instances - however, I'm spending more than I need to for I/O. (I don't know how much more, mind you.)

@jedwards4b
Copy link
Contributor

I need to bump this issue - it really needs to be addressed and shouldn't be too difficult should it?

@billsacks
Copy link
Member Author

I believe @ekluzek has this on a branch that should come to master within the next few days

@ekluzek
Copy link
Collaborator

ekluzek commented Apr 5, 2018

Yes, that's correct. I will either have it done by tomorrow, or let both of you know I didn't.

@ekluzek ekluzek closed this as completed in 4b24b08 Apr 6, 2018
@timhoar
Copy link

timhoar commented May 25, 2018

I updated to the escomp/master on Wednesday 23 May and got:
commit e739c2c
Merge: 70cbfaa 6368814
Author: Bill Sacks sacks@ucar.edu
Date: Thu May 17 14:14:14 2018 -0600

Which still seems to have the instance missing from the finidat_interp_dest filename.

@ekluzek
Copy link
Collaborator

ekluzek commented May 25, 2018

@timhoar, hmmm. It looks like that version should have the correct code in there. The only way I see around it is if you are overriding the finidat_interp_dest filename in your namelist. Or there has to be something screwed up in the instance numbering. Can you point me to your case?

@timhoar
Copy link

timhoar commented May 25, 2018

Sorry ... should have included that in the first msg:

/glade/p/work/thoar/cases/ctsm/clm5_f09_spinup80

@timhoar
Copy link

timhoar commented May 25, 2018

Arghhh! upon further inspection ... it is not the interpolation files, but the actual input files (somehow!)
Please disregard. (but stay tuned for the next issue!)

@ekluzek
Copy link
Collaborator

ekluzek commented May 25, 2018

Yeah, it does look like there are files with instance names, but not all of them are covered. I think this might relate to #389, and the use of MULTI_DRIVER.

finidat_interp_dest_0008.nc finidat_interp_dest_0020.nc finidat_interp_dest_0039.nc finidat_interp_dest_0053.nc finidat_interp_dest_0068.nc finidat_interp_dest_0077.nc
finidat_interp_dest_0018.nc finidat_interp_dest_0025.nc finidat_interp_dest_0046.nc finidat_interp_dest_0061.nc finidat_interp_dest_0071.nc finidat_interp_dest_0078.nc
finidat_interp_dest_0019.nc finidat_interp_dest_0037.nc finidat_interp_dest_0049.nc finidat_interp_dest_0065.nc finidat_interp_dest_0075.nc finidat_interp_dest_0079.nc

@timhoar
Copy link

timhoar commented May 25, 2018 via email

billsacks pushed a commit to billsacks/ctsm that referenced this issue Feb 22, 2019
slevis-lmwg added a commit to slevis-lmwg/ctsm that referenced this issue Dec 22, 2022
Remove options not used, e.g. use_fates, use_cndv, and many more
slevis-lmwg pushed a commit to slevis-lmwg/ctsm that referenced this issue Aug 1, 2023
slevis-lmwg pushed a commit to slevis-lmwg/ctsm that referenced this issue Aug 1, 2023
Pass tdepth as needed for hillslope model
samsrabin pushed a commit to samsrabin/CTSM that referenced this issue Apr 19, 2024
ekluzek added a commit to ekluzek/CTSM that referenced this issue Jun 13, 2024
25ccc15de Merge tag 'v0.7.8' into tmp-release
8eae7e3 Bump to 0.7.8
34daa06 Merge pull request ESCOMP#46 from ESMCI/add_optional_keyword
af12c80 fix spelling
7ea36dc remove manage_externals error
2ede182 add optional to status output

git-subtree-dir: .lib/git-fleximod
git-subtree-split: 25ccc15de3b2e62554243300e69d44df69a65305
AGonzalezNicolas pushed a commit to HPSCTerrSys/clm5_0 that referenced this issue Jun 27, 2024
AGonzalezNicolas pushed a commit to HPSCTerrSys/clm5_0 that referenced this issue Jul 5, 2024
jedwards4b added a commit to jedwards4b/ctsm that referenced this issue Jul 5, 2024
ekluzek added a commit to ekluzek/CTSM that referenced this issue Jul 11, 2024
a60032499 Merge tag 'v0.8.2' into tmp-release
75a0337 Bump to 0.8.2
7136066 Merge pull request ESCOMP#54 from ESMCI/fix/tag-not-found
a90de4f update to fetch tag first
a6e43fc Bump to 0.8.1
229ba03 Merge pull request ESCOMP#53 from ESMCI/fix/ssh_access
e9cd2be better fix for issue with ssh access
c624b61 Bump to 0.8.0
6ccf617 Merge pull request ESCOMP#51 from ESMCI/fix/recursive
53fce57 no need to make submodule objects persist
dae1c82 now working with issue ESCOMP#50
ded91fd all tests passing, issue ESCOMP#50 fixed
62a338b all pytests now passing
143abac tests a-d all pass
2b021fd add documentation to submodule.py
72211d2 add the new submodule class
82dd7a4 test_b_update now working
a7d8b4e all pytests passing
5322019 Bump to 0.7.9
1f07cb6 Merge pull request ESCOMP#49 from ESMCI/fix/fxDONOTUSEurl
31ce71b use poetry update to update poetry.lock file
46043f0 add code of conduct (issue ESCOMP#35)
0c3d683 dependabot changes and issue ESCOMP#48
25ccc15de Merge tag 'v0.7.8' into tmp-release
8eae7e3 Bump to 0.7.8
34daa06 Merge pull request ESCOMP#46 from ESMCI/add_optional_keyword
af12c80 fix spelling
7ea36dc remove manage_externals error
2ede182 add optional to status output
4ff1e98de Merge tag 'v0.7.7' into tmp-release
87640ad Bump to 0.7.7
c124dc5 Merge pull request ESCOMP#43 from ESMCI/fix/root_dir
3ff935b update tests
0593149 one more improvement
d95f5d6 fix status issue
c304487 update complex test
a34070b Bump to 0.7.6
9e5d5f7 Merge pull request ESCOMP#40 from ESMCI/fix/change_url
00b7b38 some fixes when modifying url

git-subtree-dir: .lib/git-fleximod
git-subtree-split: a600324993623cba8e663fcbfdb6a0f6832dd802
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something is working incorrectly priority: high High priority to fix/merge soon, e.g., because it is a problem in important configurations
Projects
None yet
Development

No branches or pull requests

4 participants