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

Fix DiagFramePlane diagnostic #190

Merged
merged 5 commits into from
Mar 28, 2023
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 13 additions & 5 deletions Source/Diagnostics/DiagFramePlane.H
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#define _DIAGFRAMEPLANE_H_

#include "DiagBase.H"
#include <AMReX_VisMF.H>

class DiagFramePlane : public DiagBase::Register<DiagFramePlane>
{
Expand Down Expand Up @@ -38,13 +39,22 @@ public:
void VisMF2D(const amrex::MultiFab &a_mf,
const std::string& a_mf_name);

void Write2DMFHeader(const std::string &a_mf_name,
amrex::VisMF::Header &hdr,
int coordinatorProc,
MPI_Comm comm);

void Find2FOffsets(const amrex::FabArray<amrex::FArrayBox> &mf,
const std::string &filePrefix,
amrex::VisMF::Header &hdr,
amrex::VisMF::Header::Version /*whichVersion*/,
amrex::NFilesIter &nfi,
int nOutFile, MPI_Comm comm);

void write_2D_header(std::ostream &os,
const amrex::FArrayBox& f,
int nvar);

int diff_2D3D_header(const amrex::Box a_box,
int nvar);

void Write2DPlotfileHeader(std::ostream &HeaderFile,
int nlevels,
const amrex::Vector<amrex::BoxArray> &bArray,
Expand All @@ -57,8 +67,6 @@ public:
const std::string &levelPrefix = "Level_",
const std::string &mfPrefix = "Cell");

void ReWriteLevelVisMFHeader(const std::string &a_HeaderPath);

void close() override {}

private:
Expand Down
Loading