Skip to content
Snippets Groups Projects
Commit 2ede7dee authored by Jean-François Remacle's avatar Jean-François Remacle
Browse files

*** empty log message ***

parent 6cf8d43d
No related branches found
No related tags found
No related merge requests found
......@@ -43,9 +43,9 @@ class PViewData {
std::string _fileName;
// index of the view in the file
int _fileIndex;
protected:
// adaptive visualization data
adaptiveData *_adaptive;
protected:
// interpolation matrices, indexed by the number of edges per
// element (1 for lines, 3 for triangles, etc.)
std::map<int, std::vector<List_T*> > _interpolation;
......
// $Id: PViewDataListIO.cpp,v 1.20 2008-05-04 08:31:24 geuzaine Exp $
// $Id: PViewDataListIO.cpp,v 1.21 2008-06-27 10:09:19 remacle Exp $
//
// Copyright (C) 1997-2008 C. Geuzaine, J.-F. Remacle
//
......@@ -28,6 +28,7 @@
#include "Numeric.h"
#include "Message.h"
#include "Context.h"
#include "adaptiveData.h"
extern Context_T CTX;
......@@ -318,6 +319,11 @@ static void writeTextPOS(FILE *fp, int nbc, int nb, List_T *TD, List_T *TC)
bool PViewDataList::writePOS(std::string fileName, bool binary, bool parsed, bool append)
{
if ( _adaptive ){
return _adaptive->getData()->writePOS (fileName,binary,parsed,append);
}
FILE *fp = fopen(fileName.c_str(),
append ? (binary ? "ab" : "a") : (binary ? "wb" : "w"));
if(!fp){
......@@ -338,7 +344,10 @@ bool PViewDataList::writePOS(std::string fileName, bool binary, bool parsed, boo
if(!parsed){
fprintf(fp, "$View /* %s */\n", getName().c_str());
fprintf(fp, "%s ", str);
if (strlen(str) == 0)
fprintf(fp, "noname ");
else
fprintf(fp, "%s ", str);
fprintf(fp, "%d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d "
"%d %d %d %d %d %d %d %d %d %d %d %d\n",
List_Nbr(Time),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment