#include <fiber/bundle/Bundle.hpp>
#include <fiber/finit/FinitAPI.h>
#include <fiber/field/ArrayRef.hpp>
#include <fiber/field/RegularlyFragmentedField.hpp>
#include <fiber/field/UniformCartesianArray.hpp>
#include <fiber/grid/types/FragmentedUniformGrid3D.hpp>
int main()
{
Finit();
#if 1
#endif
Grid&myGrid = BP[0.0][
"DemoGrid"];
BP->bindTo("outfile.f5");
#if 0
Verbose(0) << " --> have regular positions.";
else
Verbose(0) << " --> we do NOT have regular positions.";
#endif
#if 0
MIndex(7,9,3);
#else
MIndex(3,2,1);
#endif
MyUniGrid3D = FragmentedUniformGrid3D::create( NumberOfFragments,
myGrid,
{
Verbose(0) << "Could not create a fragmented uniform grid - incompatible bind file?";
return 0;
}
{
Verbose(0) << " error, no input fragments found!";
return 1;
}
{
Verbose(0) << "Iterating over " << N << " fragments.";
{
{
GridValues->CacheInfoString =
"Data for " + fID->Name();
{
Verbose(0) <<
"Unsuitable fragment coordinates: " <<
MyUniGrid3D.FragmentCoordinates;
Verbose(0) <<
"Unsuitable positions: " <<
MyUniGrid3D.Positions;
Verbose(1) << "Fragments: " << R->getNumberOfFragments() << " Index: " << FragmentIndex;
Verbose(1) << "Regular Positions:\n" << R->xml();
Verbose(0) << "Creator: " << C;
if (C) Verbose(0) << "Data: " << C->create();
break;
}
{
Eagle::point3
P =
Pts[
I ];
value =
P.x()*
P.x() -
P.y()*
P.y() +
P.z()*
P.z();
}
{
}
}
printf("**** At fragment [%s] cache uses %ld Bytes (%ldMiB) \n",
}
}
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 Grid is a set of Skeleton objects, each of them accessed via some unique SkeletonID object.
Definition Grid.hpp:60
RefPtr< Field > getCartesianPositions() const
Shortcut function: get the coordinates of the vertices in the default cartesian chart.
Definition Grid.hpp:246
Given a fragmented field of curvilinear coordinates, (3D array of coordinates), build a uniform Grid ...
Definition FAQ.dox:2