yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #11068
[Branch ~yade-pkg/yade/git-trunk] Rev 4087: Fix compilation.
------------------------------------------------------------
revno: 4087
committer: Anton Gladky <gladky.anton@xxxxxxxxx>
timestamp: Thu 2014-07-17 08:53:17 +0200
message:
Fix compilation.
modified:
pkg/dem/VTKRecorder.cpp
--
lp:yade
https://code.launchpad.net/~yade-pkg/yade/git-trunk
Your team Yade developers is subscribed to branch lp:yade.
To unsubscribe from this branch go to https://code.launchpad.net/~yade-pkg/yade/git-trunk/+edit-subscription
=== modified file 'pkg/dem/VTKRecorder.cpp'
--- pkg/dem/VTKRecorder.cpp 2014-07-16 15:50:43 +0000
+++ pkg/dem/VTKRecorder.cpp 2014-07-17 06:53:17 +0000
@@ -857,11 +857,11 @@
std::ifstream file (fileCracks.c_str(),std::ios::in);
vtkSmartPointer<vtkUnstructuredGrid> crackUg = vtkSmartPointer<vtkUnstructuredGrid>::New();
- if(file){
+ if(file){
while ( !file.eof() ){
std::string line;
Real i,p0,p1,p2,t,s,n0,n1,n2;
- while ( std::getline(file, line) {/* writes into string "line", a line of file "file". To go along diff. lines*/ )
+ while ( std::getline(file, line)) {/* writes into string "line", a line of file "file". To go along diff. lines*/
file >> i >> p0 >> p1 >> p2 >> t >> s >> n0 >> n1 >> n2;
vtkIdType pid[1];
pid[0] = crackPos->InsertNextPoint(p0, p1, p2);
@@ -870,8 +870,11 @@
crackSize->InsertNextValue(s);
iter->InsertNextValue(i);
Real n[3] = { n0, n1, n2 };
- crackNorm->InsertNextTupleValue(n); } }
- file.close(); }
+ crackNorm->InsertNextTupleValue(n);
+ }
+ }
+ file.close();
+ }
//
crackUg->SetPoints(crackPos);
crackUg->SetCells(VTK_VERTEX, crackCells);
Follow ups