Topic: oofeg - compatibility with old result files

Hi,

I updated to the most recent revision 314 with both, oofem and oofeg. It seems that new the oofeg can't process results obtained with the earlier release 1.8.

I can display the geometry, but when I access a certain load step, oofeg exits with the message:

_______________________________________________________
Error: (/home/hannawald/oofem/oofem-1.8/trunk/src/oofemlib/timestep.C:202)
ContextIOERR encountered, error code: 1
_______________________________________________________

Line 202 in timestep.C reads

    if ( class_id != TimeStepClass ) {
        THROW_CIOERR(CIO_BADVERSION);
    }

If I rerun the complete analysis everything works fine. But I don't like very much rerunning all my previous anlysis. Is there an other solution to the problem?

Regards

2

Re: oofeg - compatibility with old result files

Hi Joachim,

there is a way, how to "reuse" the context files generated with older version(s). This requires to perform following steps:
1) compare the src/oofemlib/classtype.h files from new and old distributions.
2) There will be some new entries  added in the definition of enum classType, compared to the old version.
3) These newly introduced entries has to be manually moved at the end of the list, so that the block of old-version entries will be followed by new entries.
4) recompile oofeg and oofem.

Borek

Re: oofeg - compatibility with old result files

Hi Borek,

I erased everything and checked out Rev314 again. I identified 4 new classenames in classtype.h, i.e.

    PlaneStress2dXfemClass,
    InterfaceElem2dQuadClass,
    InternalVariableFieldClass,
    InterfaceElement3dTrLinClass

which I moved to the end in this order. I recompiled everything. But I am still unable to display old results.

The error message is the same.

What am I doing wrong?

Wish you a nice weekend

4

Re: oofeg - compatibility with old result files

Hi Joachim

I have just run svn diff on these two revisions you have mentioned using

svn diff http://oofem.org/svn/trunk/src/oofemlib/classtype.h@206 http://oofem.org/svn/trunk/src/oofemlib/classtype.h@314

and I have got

Index: classtype.h
===================================================================
--- classtype.h    (revision 206)
+++ classtype.h    (revision 314)
@@ -129,8 +129,11 @@
     TrAxisym1_htClass,
     Brick1_htClass,
     Tetrah1_htClass,
+    PlaneStress2dXfemClass,
 
     InterfaceElem1dClass,
+    InterfaceElem2dQuadClass,
+    InterfaceElement3dTrLinClass,
 
     DomainClass,
 

This differs from your finding. It is absolutely necessary to have "original  block" same in both versions.

Borek