new clawmultip.py for parameter sweeps, and example#180
Merged
Conversation
Member
|
There are a number of implementations of this type of functionality that allow for more flexibility for running tests and more structure including robust ways to capture and redirect output even within a queuing system (e.g. slurm). I know at least @dsrim has an implementation and I have been using one github.com/mandli/batch for sometime on multiple machine setups. It would be nice to have a standard tool to do this, and I think there's some good ideas here that we could take and incorporate into some other implementations along with an easy example. |
Member
Author
rjleveque
added a commit
to clawpack/visclaw
that referenced
this pull request
May 5, 2025
add plotdata as argument to plotclaw. Currently needed for version of clawmultip.py added in clawpack/clawutil#180, which might be improved in the future.
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
An attempt at some general code to make it easier to do a parameter sweep in Clawpack, using
multiprocessing.Poolto spread the runs between a specified number of processes, and sending the output and plots to distinct directories.See
clawutil/src/python/clawutil/README_clawmultip.txtclawutil/examples/clawmultip_advection_1d_example1/README.txtfor more information.
Plotting requires a modified version of
plotclaw.pyavailable in clawpack/visclaw#315.