35 dataScalar->requireDataGradient();
36 dataVector->requireDataGradient();
43 Eigen::VectorXd &valuesScalar = dataScalar->values();
44 Eigen::VectorXd &valuesVector = dataVector->values();
45 valuesScalar.setLinSpaced(1., 5.);
46 valuesVector.setLinSpaced(1., 5.);
49 Eigen::MatrixXd &gradientsScalar = dataScalar->gradients();
50 Eigen::MatrixXd &gradientsVector = dataVector->gradients();
51 gradientsScalar.setOnes();
52 gradientsVector.setOnes();
56 exportVTU.
doExport(filename, location, mesh);
67 dataScalar->requireDataGradient();
68 dataVector->requireDataGradient();
75 Eigen::VectorXd &valuesScalar = dataScalar->values();
76 Eigen::VectorXd &valuesVector = dataVector->values();
78 valuesScalar.setLinSpaced(1., 5.);
79 valuesVector.setLinSpaced(1., 5.);
82 Eigen::MatrixXd &gradientsScalar = dataScalar->gradients();
83 Eigen::MatrixXd &gradientsVector = dataVector->gradients();
84 gradientsScalar.setOnes();
85 gradientsVector.setOnes();
89 exportVTU.
doExport(filename, location, mesh);
117 if (context.isRank(0)) {
127 }
else if (context.isRank(1)) {
129 }
else if (context.isRank(2)) {
137 }
else if (context.isRank(3)) {
142 std::string filename =
"io-ExportVTUTest-testExportPolygonalMesh";
144 exportVTU.
doExport(filename, location, mesh);
153 if (context.isRank(0)) {
165 }
else if (context.isRank(1)) {
167 }
else if (context.isRank(2)) {
176 }
else if (context.isRank(3)) {
181 std::string filename =
"io-ExportVTUTest-testExportTriangulatedMesh";
183 exportVTU.
doExport(filename, location, mesh);
193 if (context.isRank(0)) {
206 }
else if (context.isRank(1)) {
217 }
else if (context.isRank(2)) {
228 }
else if (context.isRank(3)) {
244 exportVTU.
doExport(filename, location, mesh);
260 std::string filename =
"io-VTUExport-ExportOneTetrahedron";
262 exportVTU.
doExport(filename, location, mesh);
273 if (context.isRank(0)) {
284 }
else if (context.isRank(1)) {
293 }
else if (context.isRank(3)) {
305 std::string filename =
"io-ExportVTUTest-PartitionedCube";
307 exportVTU.
doExport(filename, location, mesh);
PtrData & createData(const std::string &name, int dimension, DataID id, int waveformDegree=time::Time::DEFAULT_WAVEFORM_DEGREE)
Create only data for vertex.
Tetrahedron & createTetrahedron(Vertex &vertexOne, Vertex &vertexTwo, Vertex &vertexThree, Vertex &vertexFour)
Creates and initializes a Tetrahedron object.