Skip to content

Commit

Permalink
Make Dump HostBuffer Namings Consistent with ComputationalRadiationPh…
Browse files Browse the repository at this point in the history
  • Loading branch information
ax3l committed May 1, 2014
1 parent 04c3808 commit a120c93
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions src/picongpu/include/plugins/PhaseSpace/DumpHBufferSplashP.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,14 @@ namespace picongpu
PMacc::SubGrid<simDim>& sg = Environment<simDim>::get().SubGrid();
const size_t rOffset = sg.getSimulationBox().getGlobalOffset()[axis_element.first];
const size_t rSize = sg.getSimulationBox().getGlobalSize()[axis_element.first];
splash::Dimensions phaseSpace_size( rSize, hBuffer.size().y(), 1 );
splash::Dimensions phaseSpace_global_offset( rOffset, 0, 0 );

/** local buffer size (aka splash subdomain) **********************/
splash::Dimensions phaseSpace_size_local( hBuffer.size().x(),
hBuffer.size().y(),
1 );
/* globalDomain of the phase space */
splash::Dimensions globalPhaseSpace_size( rSize, hBuffer.size().y(), 1 );
/* localDomain: offset of it in the globalDomain and size */
splash::Dimensions localPhaseSpace_offset( rOffset, 0, 0 );
splash::Dimensions localPhaseSpace_size( hBuffer.size().x(),
hBuffer.size().y(),
1 );

/** Dataset Name **************************************************/
std::ostringstream dataSetName;
Expand All @@ -113,18 +114,18 @@ namespace picongpu

pdc.writeDomain( currentStep,
/* global domain and my local offset within it */
phaseSpace_size,
phaseSpace_global_offset,
globalPhaseSpace_size,
localPhaseSpace_offset,
/* */
ctPhaseSpace,
bufDim,
/* local data set dimensions */
phaseSpace_size_local,
localPhaseSpace_size,
/* data set name */
dataSetName.str().c_str(),
/* global domain */
splash::Dimensions( 0, 0, 0 ),
phaseSpace_size,
globalPhaseSpace_size,
/* dataClass, buffer */
DomainCollector::GridType,
&(*hBuffer.origin()) );
Expand Down

0 comments on commit a120c93

Please sign in to comment.