xolotl/io/src/XFile.cpp
// Caller gives us 2D ragged representation, and we flatten it into
// a 1D dataset and add a 1D "starting index" array.
// Assumes that grid point slabs are assigned to processes in
// MPI rank order.
Caller gives us 2D ragged representation, and we flatten it into
a 1D dataset and add a 1D "starting index" array.
Assumes that grid point slabs are assigned to processes in
MPI rank order.
Caller gives us 2D ragged representation and we flatten it into a 1D dataset and add a 1D " starting index " array . Assumes that grid point slabs are assigned to processes in MPI rank order .
void
XFile::TimestepGroup::writeConcentrations(
	const XFile& file, int baseX, const Concs1DType& raggedConcs) const
{
	RaggedDataSet2D<ConcType> dataset(
		file.getComm(), *this, concDatasetName, baseX, raggedConcs);
}
void XFile :: TimestepGroup :: writeConcentrations ( const XFile & file , int baseX , const Concs1DType & raggedConcs ) const { RaggedDataSet2D < ConcType > dataset ( file . getComm ( ) , * this , concDatasetName , baseX , raggedConcs ) ; }
Caller gives us 2D ragged representation, and we flatten it into
a 1D dataset and add a 1D "starting index" array.
Caller gives us 2D ragged representation and we flatten it into a 1D dataset and add a 1D " starting index " array .
// Create and write the ragged dataset. // Unlike our other DataSet types, there is no need to call a // 'write' on the dataset.  The constructor above // defines the dataset *and* writes the given data.