hemocell
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
hemo::HemoCellFields::CompleteCellsScope Class Reference

Complete cells for reading, without changing the simulation. More...

#include <hemoCellFields.h>

Collaboration diagram for hemo::HemoCellFields::CompleteCellsScope:
Collaboration graph
[legend]

Public Member Functions

 CompleteCellsScope (HemoCellFields &fields)
 
 ~CompleteCellsScope ()
 
 CompleteCellsScope (const CompleteCellsScope &)=delete
 
CompleteCellsScope & operator= (const CompleteCellsScope &)=delete
 

Private Attributes

HemoCellFields & fields
 

Detailed Description

Complete cells for reading, without changing the simulation.

Output and statistics need every cell complete in the blocks holding it. While an object of this class exists, every local block holds a copy of its particles, synchronised with syncEnvelopes() and with incomplete cells deleted. The destructor puts back the particles as they were, so that reading does not change the trajectory (the order of the particles, which sets the summation order of force spreading, included). Changes to the particles inside the scope are discarded.

Scopes nest: only the outermost one copies and restores. Collective: all ranks must create and destroy it at the same point of the program.

Constructor & Destructor Documentation

◆ CompleteCellsScope() [1/2]

hemo::HemoCellFields::CompleteCellsScope::CompleteCellsScope ( HemoCellFields &  fields)
explicit

◆ ~CompleteCellsScope()

hemo::HemoCellFields::CompleteCellsScope::~CompleteCellsScope ( )

◆ CompleteCellsScope() [2/2]

hemo::HemoCellFields::CompleteCellsScope::CompleteCellsScope ( const CompleteCellsScope &  )
delete

Member Function Documentation

◆ operator=()

CompleteCellsScope & hemo::HemoCellFields::CompleteCellsScope::operator= ( const CompleteCellsScope &  )
delete

Member Data Documentation

◆ fields

HemoCellFields& hemo::HemoCellFields::CompleteCellsScope::fields
private