Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -113,14 +113,32 @@ class TetrahedralCorotationalFEMForceField : public BaseLinearElasticityFEMForce
}

/// Output stream
inline friend std::ostream& operator<< ( std::ostream& os, const TetrahedronInformation& /*tri*/ )
inline friend std::ostream& operator<< ( std::ostream& os, const TetrahedronInformation& tri )
{
os << tri.materialMatrix << " ";
os << tri.strainDisplacementTransposedMatrix << " ";

for (int i = 0; i < 4; ++i)
os << tri.rotatedInitialElements[i] << " ";

os << tri.elemShapeFun << " ";
os << tri.rotation << " ";
os << tri.initialTransformation << " ";
return os;
}

/// Input stream
inline friend std::istream& operator>> ( std::istream& in, TetrahedronInformation& /*tri*/ )
inline friend std::istream& operator>> ( std::istream& in, TetrahedronInformation& tri )
{
in >> tri.materialMatrix;
in >> tri.strainDisplacementTransposedMatrix;

for (int i = 0; i < 4; ++i)
in >> tri.rotatedInitialElements[i];

in >> tri.elemShapeFun;
in >> tri.rotation;
in >> tri.initialTransformation;
return in;
}
};
Expand Down