fixed: wrong doxy confusing me when doing the converter

parameter is the blockID, not the step identifier

git-svn-id: http://svn.sintef.no/trondheim/IFEM/trunk@1228 e10b68d5-8a6e-419e-a041-bce267b0401d
This commit is contained in:
akva 2011-09-28 12:42:47 +00:00 committed by Knut Morten Okstad
parent 31d2d04872
commit becbfed22d
2 changed files with 5 additions and 5 deletions

View File

@ -145,7 +145,7 @@ void writeFieldBlocks(VTFList& vlist, VTFList& slist, VTF& myvtf,
}
void writePatchGeometry(ASMbase* patch, int id, VTF& myVtf, int* nViz, int iStep)
void writePatchGeometry(ASMbase* patch, int id, VTF& myVtf, int* nViz, int block)
{
std::stringstream str;
str << "Patch " << id;
@ -153,7 +153,7 @@ void writePatchGeometry(ASMbase* patch, int id, VTF& myVtf, int* nViz, int iStep
size_t nd = patch->getNoParamDim();
ElementBlock* lvb = new ElementBlock(nd == 3 ? 8 : (nd == 2 ? 4 : 2));
patch->tesselate(*lvb,nViz);
myVtf.writeGrid(lvb,str.str().c_str(),iStep);
myVtf.writeGrid(lvb,str.str().c_str(),block);
}
@ -313,7 +313,7 @@ int main (int argc, char** argv)
else
gpatches = patches.begin()->second;
for (int l=0;l<pit->second[0].patches;++l)
writePatchGeometry(gpatches[l],l+1,*myVtf,n,k);
writePatchGeometry(gpatches[l],l+1,*myVtf,n,++block);
block += pit->second[0].patches;
for (size_t l=0;l<FEmodel.size();++l)
delete[] FEmodel[l];

View File

@ -59,9 +59,9 @@ public:
//! \brief Writes the FE geometry to the VTF-file.
//! \param[in] g The FE grid that all results written are referred to
//! \param[in] partname Name of the geometry being written
//! \param[in] iStep Load/Time step identifier
//! \param[in] idBlock Result block identifier
virtual bool writeGrid(const ElementBlock* g, const char* partname,
int iStep = 1);
int idBlock = 1);
//! \brief Writes a block of scalar nodal results to the VTF-file.
//! \param[in] nodeResult Vector of nodal results,