126 size_t n1 = 1000, n2 = 33, n3=10;
129 cg0->setTimeMin(0.21);
132 cg1->setWidth(0.5/3.01);
133 cg1->setTimeMin(0.21);
136 cg2->setWidth(0.5/3.01);
137 cg2->setTimeMin(0.21);
140 cg3->setWidth(0.5/3.01);
141 cg3->setTimeMin(0.21);
144 cg4->setWidth(0.5/2.01);
145 cg4->setTimeMin(0.21);
148 cg5->setWidth(0.5/2.01);
149 cg5->setTimeMin(0.21);
152 cg6->setWidth(0.5/2.01);
153 cg6->setTimeMin(0.21);
156 cg7->setWidth(0.5/2.01);
157 cg7->setTimeMin(0.21);
160 cg8->setWidth(0.5/2.01);
161 cg8->setTimeMin(0.21);
164 cg9->setWidth(0.5/2.01);
165 cg9->setTimeMin(0.21);
168 cg10->setWidth(0.5/2.01);
169 cg10->setTimeMin(0.21);
172 cg11->setWidth(0.5/3.01);
173 cg11->setTimeMin(0.21);
176 cg12->setWidth(0.5/2.01);
177 cg12->setTimeMin(0.21);
180 cg13->setWidth(0.5/3.01);
181 cg13->setTimeMin(0.21);
184 problem.
solve(argc, argv);
186 helpers::writeToFile(
"CGBasicSelfTest.1D.gnu",
"p 'CGBasicSelfTest.1.stat' u 2:22 w d, 'CGBasicSelfTest.4.stat' u 2:22 w d, 'CGBasicSelfTest.7.stat' u 2:22 w d");
std::enable_if<!std::is_pointer< U >::value, U * >::type copyAndAddObject(const U &object)
Creates a copy of a Object and adds it to the BaseHandler.
Definition: BaseHandler.h:379
Tests if the different CG templates work correctly.
Definition: CGBasicSelfTest.cpp:76
Evaluates time-resolved continuum fields and writes the data into a stat file.
Definition: CG.h:76
CGHandler cgHandler
Object of the class cgHandler.
Definition: DPMBase.h:1473
void setTimeMax(Mdouble newTMax)
Sets a new value for the maximum simulation duration.
Definition: DPMBase.cc:873
void solve()
The work horse of the code.
Definition: DPMBase.cc:4270
bool writeToFile(std::string filename, std::string filecontent)
Writes a string to a file.
Definition: FileIOHelpers.cc:58