123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
-
-
-
-
-
- #include<random>
- #include<FDEM1D>
- using namespace Lemma;
-
- int main()
- {
-
- std::random_device rd;
- std::mt19937 gen(rd());
-
-
- std::discrete_distribution<> d({0,0,0,10,10,10,10,10,10,10,10,10,10});
- int np = d(gen);
-
- auto Obj = FieldPoints::NewSP();
-
- Obj->SetNumberOfPoints(np);
-
-
-
- YAML::Node node = Obj->Serialize();
- std::cout << node << std::endl;
- auto Obj2 = FieldPoints::DeSerialize(node);
-
-
- }
|