diff --git a/Post/PView.cpp b/Post/PView.cpp index 1f984158be59fb03ba54a9f78b414e3487815ce0..a83789a938c7c6d3775dedf87f784fed533a2980 100644 --- a/Post/PView.cpp +++ b/Post/PView.cpp @@ -1,4 +1,4 @@ -// $Id: PView.cpp,v 1.16 2008-02-18 18:32:54 geuzaine Exp $ +// $Id: PView.cpp,v 1.17 2008-02-20 09:24:41 geuzaine Exp $ // // Copyright (C) 1997-2008 C. Geuzaine, J.-F. Remacle // @@ -304,7 +304,7 @@ bool PView::readMSH(std::string filename, int fileIndex) // FIXME: to be implemented! int index = 0; - PViewDataGModel *d = new PViewDataGModel(); + PViewDataGModel *d = new PViewDataGModel(GModel::current()); if(!d->readMSH(fp)){ Msg(GERROR, "Could not read data in msh file"); delete d; diff --git a/Post/PViewDataGModel.cpp b/Post/PViewDataGModel.cpp index baf79b42d703eaa868065496ca13d13759c6a477..41f2124bbeb4cc9add80e8b46665d9b0d89c274f 100644 --- a/Post/PViewDataGModel.cpp +++ b/Post/PViewDataGModel.cpp @@ -1,4 +1,4 @@ -// $Id: PViewDataGModel.cpp,v 1.11 2008-02-18 18:49:18 geuzaine Exp $ +// $Id: PViewDataGModel.cpp,v 1.12 2008-02-20 09:24:41 geuzaine Exp $ // // Copyright (C) 1997-2008 C. Geuzaine, J.-F. Remacle // @@ -28,6 +28,12 @@ bool PViewDataGModel::readMSH(FILE *fp) { Msg(INFO, "Filling PViewDataGModel..."); + + MVertex *v = _model->getMeshVertex(10); + if(v){ + printf("vertex 10 in mesh is %p\n", v); + } + return false; } diff --git a/Post/PViewDataGModel.h b/Post/PViewDataGModel.h index 866982962356af3a8e37f4ae03ba15855e79ed33..e54cdd3ced6310bf445ab93eeec9a6da93b88f0e 100644 --- a/Post/PViewDataGModel.h +++ b/Post/PViewDataGModel.h @@ -31,7 +31,7 @@ class PViewDataGModel : public PViewData { GModel *_model; PViewDataList *_cloneToList(); // create old-style data from this public: - PViewDataGModel(){} + PViewDataGModel(GModel *model) : _model(model) {} ~PViewDataGModel(){} int getNumTimeSteps(){ return 1; } double getMin(int step=-1){ return 0.; }