Mechanics of Defect Evolution Library
Loading...
Searching...
No Matches
tools/MicrostructureGenerator/microstructureGenerator.cpp
Go to the documentation of this file.
1/* This file is part of MODEL, the Mechanics Of Defect Evolution Library.
2 *
3 * Copyright (C) 2015 by Giacomo Po <gpo@ucla.edu>.
4 *
5 * model is distributed without any warranty under the
6 * GNU General Public License (GPL) v2 <http://www.gnu.org/licenses/>.
7 */
8
11
12using namespace model;
13
14int main(int argc, char** argv)
15{
16#ifdef _MODEL_PYBIND11_ // COMPILED WITH PYBIND11
17 pybind11::scoped_interpreter guard{};
18#endif
19
20 const std::string folderName(argc>1? std::string(argv[1]) : "./");
21
22 DefectiveCrystalBase<3> ddBase(folderName);
23 MicrostructureGenerator mg(ddBase);
25 mg.writeConfigFiles(0);
26
27 return 0;
28}
void argv
void b int argc