45int main(
int argc,
char* argv[])
56 asl::Parameter<FlT> betaDisl(0.0,
"beta_dislocation",
"Kinetic coefficient for dislocation");
60 "Crystallographic directions");
65 appParamsManager.
load(argc, argv);
67 std::cout <<
"Data initialization... ";
70 auto levelSet(asl::generateDataContainerACL_SP<FlT>(block, 1, 1u));
74 auto sphere1(generateDFSphere(radius.
v(), center*.8));
75 auto sphere2(generateDFSphere(radius.
v(), center*1.2));
76 asl::initData(levelSet, normalize(sphere1 | sphere2, dx.v()));
84 std::cout <<
"Finished" << endl;
86 std::cout <<
"Numerics initialization... " << flush;
88 auto lsNum(std::make_shared<asl::LSFacetedGrowth>(levelSet, superSaturation));
90 lsNum->crystallography.betaRough = betaRough.
v();
91 for (
auto it(cr_directions_p.
v().begin()); it != cr_directions_p.
v().end(); ++it)
96 std::cout <<
"Finished" << endl;
97 std::cout <<
"Computing...";
103 for (
unsigned int i(0); i < nIterations.
v(); ++i)
106 if (!(i % nItOut.
v()))
111 cout <<
"Finished" << endl;
113 cout <<
"Computation statistic:" << endl;
114 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)