Skip to content

Commit a438488

Browse files
authored
StateData: add new set functions (#4512)
1 parent e0f31ed commit a438488

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Src/Amr/AMReX_StateData.H

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,8 @@ public:
297297
*/
298298
const BoxArray& boxArray () const noexcept { return grids; }
299299

300+
void setBoxArray (BoxArray const& a_grids) noexcept { grids = a_grids; }
301+
300302
const DistributionMapping& DistributionMap () const noexcept { return dmap; }
301303

302304
/**
@@ -307,6 +309,10 @@ public:
307309

308310
const FabFactory<FArrayBox>& Factory () const noexcept { return *m_factory; }
309311

312+
void setFactory (FabFactory<FArrayBox> const& a_factory) {
313+
m_factory.reset(a_factory.clone());
314+
}
315+
310316
/**
311317
* \brief Returns the current time.
312318
*/

0 commit comments

Comments
 (0)