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

Checkpoint tools #885

Merged
merged 27 commits into from
Sep 5, 2023
Merged

Checkpoint tools #885

merged 27 commits into from
Sep 5, 2023

Conversation

mbkuhn
Copy link
Contributor

@mbkuhn mbkuhn commented Jul 25, 2023

tools to

  • coarsen checkpoint file by a factor of 2
  • convert checkpoint file to CSV

}

[[nodiscard]] const DistributionMapping&
DistributionMap(int level) const noexcept
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

totally minor: you seem to be following camelCase for all the other member functions but this one.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

true! this is straight from "amrex/Src/Base/AMReX_PlotFileDataImpl.H" though


virtual ~CoarsenCheckpt() = default;

void read_chkpt_add_baselevel();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and these are snake case ;)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I bet it does look funny with the different cases! But this PR has a few tools in it. CoarsenCheckpt is separate from CheckpointToCSV. Each is different because of the code I started from.

@mbkuhn mbkuhn marked this pull request as ready for review July 26, 2023 16:39
@mbkuhn mbkuhn enabled auto-merge (squash) August 3, 2023 16:26
@mbkuhn mbkuhn requested a review from marchdf August 3, 2023 16:26
@github-actions
Copy link

github-actions bot commented Sep 4, 2023

This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@mbkuhn
Copy link
Contributor Author

mbkuhn commented Sep 5, 2023

@marchdf are you good with these changes?

@mbkuhn mbkuhn merged commit 6831033 into Exawind:main Sep 5, 2023
13 checks passed
@mbkuhn mbkuhn deleted the coarsen_checkpoint branch July 25, 2024 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants