Skip to content

Commit

Permalink
whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
ajnonaka committed Dec 6, 2024
1 parent e231e27 commit 2f2500a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions ExampleCodes/Basic/HeatEquation_Restart/Source/checkpoint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ void WriteCheckpoint(const int& step,
// ---- after all directories are built
// ---- ParallelDescriptor::IOProcessor() creates the directories
PreBuildDirectorHierarchy(checkpointname, "Level_", nlevels, true);

VisMF::IO_Buffer io_buffer(VisMF::IO_Buffer_Size);

// write Header file to store time and BoxArray
Expand All @@ -56,7 +56,7 @@ void WriteCheckpoint(const int& step,

// write out time
HeaderFile << time << "\n";

// write the BoxArray
ba.writeOn(HeaderFile);
HeaderFile << '\n';
Expand Down
10 changes: 5 additions & 5 deletions ExampleCodes/Basic/HeatEquation_Restart/Source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ void main_main ()
// restart = -1 --> start new simulation
// restart > 0 --> restart from step=restart
int restart;

// inputs parameters
{
// ParmParse is way of reading inputs from the inputs file
Expand Down Expand Up @@ -78,7 +78,7 @@ void main_main ()
// restart > 0 --> restart from step=restart
restart = -1;
pp.query("restart",restart);

}

// **********************************
Expand Down Expand Up @@ -108,7 +108,7 @@ void main_main ()

// extract dx from the geometry object
GpuArray<Real,AMREX_SPACEDIM> dx = geom.CellSizeArray();

// create a BoxArray and DistributionMapping
// ba will contain a list of boxes that cover the domain
// if restarting, BoxArray is read in from the checkpoint directory
Expand All @@ -132,7 +132,7 @@ void main_main ()

// start a new simulation
if (restart <= 0) {

// Initialize the boxarray "ba" from the single box "domain"
ba.define(domain);

Expand All @@ -148,7 +148,7 @@ void main_main ()

// time = starting time in the simulation
time = 0.0;

start_step = 1;

// **********************************
Expand Down

0 comments on commit 2f2500a

Please sign in to comment.