|
@@ -128,16 +128,8 @@ namespace Lemma {
|
128
|
128
|
// Class: FEM4EllipticPDE
|
129
|
129
|
// Method: SetVTUGridFile
|
130
|
130
|
//--------------------------------------------------------------------------------------
|
131
|
|
- void FEM4EllipticPDE::SetVTUGridFile ( std::string& fname ) {
|
132
|
|
- std::cout << "Loading VTK .vtu file " << fname;
|
133
|
|
- vtkXMLUnstructuredGridReader* MeshReader = vtkXMLUnstructuredGridReader::New();
|
134
|
|
- MeshReader->SetFileName(fname.c_str());
|
135
|
|
- MeshReader->Update();
|
136
|
|
- //vtkGrid->DeepCopy( MeshReader->GetOutput() );
|
137
|
|
- //vtkGrid->ShallowCopy( MeshReader->GetOutput() );
|
138
|
|
- vtkGrid = MeshReader->GetOutput();
|
139
|
|
- MeshReader->Delete();
|
140
|
|
- std::cout << " Finished! " << std::endl;
|
|
131
|
+ void FEM4EllipticPDE::SetVTUGridFile ( const std::string& fname ) {
|
|
132
|
+ SetVTUGridFile( fname.c_str() );
|
141
|
133
|
return ;
|
142
|
134
|
} // ----- end of method FEM4EllipticPDE::SetVTKGridFile -----
|
143
|
135
|
|
|
@@ -145,7 +137,7 @@ namespace Lemma {
|
145
|
137
|
// Class: FEM4EllipticPDE
|
146
|
138
|
// Method: SetVTUGridFile
|
147
|
139
|
//--------------------------------------------------------------------------------------
|
148
|
|
- void FEM4EllipticPDE::SetVTUGridFile ( char* fname ) {
|
|
140
|
+ void FEM4EllipticPDE::SetVTUGridFile ( const char* fname ) {
|
149
|
141
|
std::cout << "Loading VTK .vtu file " << fname;
|
150
|
142
|
vtkXMLUnstructuredGridReader* MeshReader = vtkXMLUnstructuredGridReader::New();
|
151
|
143
|
MeshReader->SetFileName(fname);
|