Mechanics of Defect Evolution Library
Loading...
Searching...
No Matches
PolyhedronInclusionNodeIO.cpp
Go to the documentation of this file.
1/* This file is part of MoDELib, distributed under GNU GPL v2. */
3
4namespace model
5{
6
7 template <short unsigned int dim>
9
10 const size_t &nodeID_in, const VectorDim &P_in)
11 :
12
13 nodeID(nodeID_in), P(P_in)
14 {
15
16 // assert(0 && "FINISH HERE, THIS MUST BE COMPATIBLE WITH ID READER");
17 }
18
19 template <short unsigned int dim>
26
27 template <short unsigned int dim>
29 :
30
31 nodeID(0), P(VectorDim::Zero())
32 {
33 // ss>>inclusionID;
34 ss >> nodeID;
35 for (int d = 0; d < dim; ++d)
36 {
37 ss >> P(d);
38 }
39 }
40
41 template <short unsigned int dim> void PolyhedronInclusionNodeIO<dim>::write(std::ostream &os) const
42 {
43 os //<< inclusionID<<"\t"
44 << nodeID
45 << "\t"
46 /**/
47 << P.transpose();
48 return;
49 }
50 template struct PolyhedronInclusionNodeIO<3>;
51
52} // namespace model
Eigen::Matrix< double, dim, 1 > VectorDim
newsubseg ss[0]