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

Consistently clean output directory #423

Open
dschlaep opened this issue Jul 23, 2024 · 0 comments
Open

Consistently clean output directory #423

dschlaep opened this issue Jul 23, 2024 · 0 comments

Comments

@dschlaep
Copy link
Member

dschlaep commented Jul 23, 2024

We currently remove existing csv-output files at the beginning of each run via SW_CSV_F_INIT(). However, we are not removing existing nc-output files. This is because nc-based SOILWAT2 enables restarts that continue a previously partially completed run.

  • for txt-based SOILWAT2: delete all existing files within the output directory at startup. For instance, we could use RemoveFiles() (plus changes if needed) -- and vastly simplify/delete SW_CSV_F_INIT() (though we still need to MkDir() the output directory if not present).

  • for nc-based SOILWAT2: delete any lingering ".csv" files but do not delete any ".nc" files (to allow restarts)

@dschlaep dschlaep added this to the Release v8+ milestone Jul 23, 2024
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