45int main(
int argc,
char* argv[])
60 appParamsManager.
load(argc, argv);
62 std::cout <<
"Data initialization...";
65 auto levelSet(asl::generateDataContainerACL_SP<FlT>(block, 1, 1u));
69 auto sphere1(generateDFSphere(radius.
v(), center*.8));
70 auto sphere2(generateDFSphere(radius.
v(), center*1.2));
71 asl::initData(levelSet, normalize(sphere1 | sphere2, dx.v()));
79 std::cout <<
"Finished" << endl;
81 std::cout <<
"Numerics initialization..." << flush;
83 auto lsNum(std::make_shared<asl::LSNormalGrowth>(levelSet, superSaturation));
87 std::cout <<
"Finished" << endl;
88 std::cout <<
"Computing...";
94 for (
unsigned int i(0); i < nIterations.
v(); ++i)
97 if (!(i % nItOut.
v()))
102 cout <<
"Finished" << endl;
104 cout <<
"Computation statistic:" << endl;
105 cout <<
"Real Time = " << timer.
realTime() <<
"; Processor Time = "
void load(int argc, char *argv[])
const double realTime() const
const double processorTime() const
const double processorLoad() const
Updatable value. This class stores value and its TimeStamp.
void addScalars(std::string name, AbstractData &data)
SPDataWithGhostNodesACL generateDataContainerConst_SP(const Block &b, T a, unsigned int gN)
acl::TypeID type(acl::typeToTypeID< FlT >())
void initData(SPAbstractData d, double a)