Skip to content

new clawmultip.py for parameter sweeps, and example#180

Merged
rjleveque merged 1 commit into
clawpack:masterfrom
rjleveque:clawmultip
May 5, 2025
Merged

new clawmultip.py for parameter sweeps, and example#180
rjleveque merged 1 commit into
clawpack:masterfrom
rjleveque:clawmultip

Conversation

@rjleveque
Copy link
Copy Markdown
Member

An attempt at some general code to make it easier to do a parameter sweep in Clawpack, using multiprocessing.Pool to 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.txt
  • clawutil/examples/clawmultip_advection_1d_example1/README.txt

for more information.

Plotting requires a modified version of plotclaw.py available in clawpack/visclaw#315.

@mandli
Copy link
Copy Markdown
Member

mandli commented May 5, 2025

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.

@rjleveque
Copy link
Copy Markdown
Member Author

@mandli, @dsrim: Yes, I'm hoping to work with you both at the upcoming hackathon to see if this can be improved, but thought I'd add my current version as a possible starting point.

@rjleveque rjleveque merged commit 2f7910a into clawpack:master May 5, 2025
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.
@rjleveque rjleveque mentioned this pull request May 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants