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

amrex::UtilCreateCleanDirectory That Only Moves #3791

Open
ax3l opened this issue Mar 6, 2024 · 0 comments
Open

amrex::UtilCreateCleanDirectory That Only Moves #3791

ax3l opened this issue Mar 6, 2024 · 0 comments

Comments

@ax3l
Copy link
Member

ax3l commented Mar 6, 2024

For a few of our workflows, I would love to have a variant / new version of amrex::UtilCreateCleanDirectory that:

  • move the directory out of the way if it exists, but
  • does not create a new directory.

This would be useful because keeping an existing directory around (from an older run that had diagnostics) can create confusion if the new run does not create diagnostics. But, at the same time, there are important workflows (automated optimization) where we do not want to create an empty diags/ folder at all (because the it creates both overheads and our runs are sometimes faster than the creation timestamp).

X-ref: ECP-WarpX/impactx#544

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant