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:
parent
31d2d04872
commit
becbfed22d
@ -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];
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user