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.cr_simple_hydrog.csh fails and wipes the entire FTMPDIR #47

Closed
ngs333 opened this issue Feb 12, 2021 · 5 comments · Fixed by #148
Closed

run.cr_simple_hydrog.csh fails and wipes the entire FTMPDIR #47

ngs333 opened this issue Feb 12, 2021 · 5 comments · Fixed by #148
Assignees
Labels

Comments

@ngs333
Copy link
Contributor

ngs333 commented Feb 12, 2021

When I try to run run.cr_simple_hydrog.csh from a sub-directory of $FTMPDIR, it fails with the following messages:
an106: /vftmp/Sergey.Malyshev/pid20895/hydro > ./run.cr_simple_hydrog.csh
ERROR: invalid platform
In addition, everything in the $FTMPDIR directory is wiped out by the script. This could potentially result in significant loss of work, if there are other directories in $FTMPDIR that are being used for, say, data accumulation or processing. The "invalid platform" error message appears to be spurious, caused by the fact that in my case the current working directory was also removed.
Ideally, a script should create its own unique temporary directory, if necessary.
@slm7826
@ngs333 This is gitlab issue #65

@ceblanton
Copy link
Contributor

Hi @ngs333, @LuisSalbey and I modified the original run.cr_simple_hydrog.csh, and renamed it make_simple_hydrog.csh in the process. The script included in this repo is the make_simple_hydrog.csh currently.

@ceblanton
Copy link
Contributor

However, we didn't fix that bad behavior you see, unfortunately. I agree it is suboptimal and even dangerous.

@ngs333 ngs333 self-assigned this Feb 25, 2022
@ngs333
Copy link
Contributor Author

ngs333 commented Mar 2, 2022

@slm7826
Hi Sergey. Sorry we took so long to get to this issue. The original script ( run.cr_simple_hydrog.sh) was updated a while ago, and now renamed make_simple_hydrog.sh. The new script is in dir FRE-NCtools/tools/simple_hydrog/share; and it seems the old script was somehow deprecated and yet kept and and put in dir FRE-NCtools/tools/simple_hydrog/old.

I agree its bad to wipe out the directory. It looks like both scripts do that, and the new one will be changed this week. Possibly to just make a new dir with mktemp and to work from there.

I am wondering if you are still using, want to use, or know someone that is using the old script.
Thanks
Mike Z

@slm7826
Copy link
Contributor

slm7826 commented Mar 3, 2022 via email

@ngs333
Copy link
Contributor Author

ngs333 commented Mar 3, 2022

@slm7826
Sergey,
Thanks for the input.
MZ

@ngs333 ngs333 added the bug label Mar 4, 2022
@ngs333 ngs333 linked a pull request Mar 4, 2022 that will close this issue
uramirez8707 pushed a commit to uramirez8707/FRE-NCtools that referenced this issue Mar 25, 2024
uramirez8707 pushed a commit to uramirez8707/FRE-NCtools that referenced this issue Mar 25, 2024
uramirez8707 pushed a commit to uramirez8707/FRE-NCtools that referenced this issue Mar 25, 2024
uramirez8707 pushed a commit to uramirez8707/FRE-NCtools that referenced this issue Mar 25, 2024
uramirez8707 pushed a commit to uramirez8707/FRE-NCtools that referenced this issue Mar 25, 2024
uramirez8707 pushed a commit to uramirez8707/FRE-NCtools that referenced this issue Mar 25, 2024
uramirez8707 pushed a commit to uramirez8707/FRE-NCtools that referenced this issue Mar 25, 2024
uramirez8707 pushed a commit to uramirez8707/FRE-NCtools that referenced this issue Mar 25, 2024
Reference tests for fregrid and combiners

Closes NOAA-GFDL#47

See merge request fre/fre-nctools!122
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants