#include <fiber/bundle/Bundle.hpp>
#include <fiber/finit/FinitAPI.h>
#include <fiber/field/ArrayRef.hpp>
#include <fiber/field/UniformCartesianArray.hpp>
#include <memcore/MemUsage.hpp>
#undef Verbose
#define Verbose(X) AppVerbose("Example",X)
int main()
{
Finit();
try
{
const int kB = 1024, MB = kB*kB;
#if 0
#else
#endif
BP->bindToNew("050_BigDataOutOfCoreFragments.f5");
{
{
{
string FragmentName = "tile";
FragmentName += "x";
Verbose(0) << "****Creating new fragment [" << FragmentName << "], currently using "
<< ", cache uses "
FragmentDiagonal.multiply(1.0/(Dims[0]-1), 1.0/(Dims[1]-1), 1.0/(Dims[2]-1) ) );
Coordinates->CacheInfoString =
"Coordinates for " + FragmentName;
Positions->setFragmentOffset( FragmentName,
MIndex(
tileX*Dims[0],
tileY*Dims[1], 0*Dims[2] ) );
{
GridValues->CacheInfoString =
"Data for " + FragmentName;
{
Eagle::point3
P =
Pts[
I ];
value =
P.x()*
P.x() -
P.y()*
P.y() +
P.z()*
P.z();
}
}
}
}
Verbose(0) <<
"Before purging: cache uses "<<
theGlobalCache->totalCost() <<
" Bytes.";
}
Verbose(0) <<
"After purging: cache uses "<<
theGlobalCache->totalCost() <<
" Bytes.";
}
{
Verbose(0) << " Out of memory, could not handle object "
<<
MemError.myCacheable->getCacheInfoString() <<
" .";
else
Verbose(0) << " Out of memory.";
}
return 0;
}
Convenience class that implements a pointer to a Bundle object but adds some useful member funtions t...
Definition Bundle.hpp:779
An iterator with an optional DataCreator, which is just a class to intercept creation of data along a...
Definition CreativeIterator.hpp:34
A Representation is a set of Field objects, each of them accessed via some FieldID identifier.
Definition Representation.hpp:101
Given a fragmented field of curvilinear coordinates, (3D array of coordinates), build a uniform Grid ...
Definition FAQ.dox:2
unsigned long long getMemUsage()