Dear Mikael,
Thank you very much for your help. It seems there is something wrong with ContextMode. Could you please look at the output below? Thanks,
Xuejian
login4% make
Scanning dependencies of target sm
[ 0%] Building CXX object src/sm/CMakeFiles/sm.dir/lspace.C.o
In file included from /work/01900/liuxueji/oofem/src/oofemlib/element.h:38,
from /work/01900/liuxueji/oofem/src/oofemlib/structuralelement.h:38,
from /work/01900/liuxueji/oofem/src/oofemlib/nlstructuralelement.h:38,
from /work/01900/liuxueji/oofem/src/sm/lspace.h:38,
from /work/01900/liuxueji/oofem/src/sm/lspace.C:35:
/work/01900/liuxueji/oofem/src/oofemlib/femcmpnn.h:161: error: `ContextMode' has not been declared
/work/01900/liuxueji/oofem/src/oofemlib/femcmpnn.h:161: error: ISO C++ forbids declaration of `mode' with no type
/work/01900/liuxueji/oofem/src/oofemlib/femcmpnn.h:172: error: `ContextMode' has not been declared
/work/01900/liuxueji/oofem/src/oofemlib/femcmpnn.h:172: error: ISO C++ forbids declaration of `mode' with no type
In file included from /work/01900/liuxueji/oofem/src/oofemlib/element.h:39,
from /work/01900/liuxueji/oofem/src/oofemlib/structuralelement.h:38,
from /work/01900/liuxueji/oofem/src/oofemlib/nlstructuralelement.h:38,
from /work/01900/liuxueji/oofem/src/sm/lspace.h:38,
from /work/01900/liuxueji/oofem/src/sm/lspace.C:35:
/work/01900/liuxueji/oofem/src/oofemlib/flotmtrx.h:464: error: `ContextMode' has not been declared
/work/01900/liuxueji/oofem/src/oofemlib/flotmtrx.h:464: error: ISO C++ forbids declaration of `mode' with no type
/work/01900/liuxueji/oofem/src/oofemlib/flotmtrx.h:465: error: `ContextMode' has not been declared
/work/01900/liuxueji/oofem/src/oofemlib/flotmtrx.h:465: error: ISO C++ forbids declaration of `mode' with no type
In file included from /work/01900/liuxueji/oofem/src/oofemlib/element.h:40,
from /work/01900/liuxueji/oofem/src/oofemlib/structuralelement.h:38,
from /work/01900/liuxueji/oofem/src/oofemlib/nlstructuralelement.h:38,
from /work/01900/liuxueji/oofem/src/sm/lspace.h:38,
from /work/01900/liuxueji/oofem/src/sm/lspace.C:35:
/work/01900/liuxueji/oofem/src/oofemlib/flotarry.h:380: error: `ContextMode' has not been declared
/work/01900/liuxueji/oofem/src/oofemlib/flotarry.h:380: error: ISO C++ forbids declaration of `mode' with no type
/work/01900/liuxueji/oofem/src/oofemlib/flotarry.h:381: error: `ContextMode' has not been declared
/work/01900/liuxueji/oofem/src/oofemlib/flotarry.h:381: error: ISO C++ forbids declaration of `mode' with no type
In file included from /work/01900/liuxueji/oofem/src/oofemlib/element.h:43,
from /work/01900/liuxueji/oofem/src/oofemlib/structuralelement.h:38,
from /work/01900/liuxueji/oofem/src/oofemlib/nlstructuralelement.h:38,
from /work/01900/liuxueji/oofem/src/sm/lspace.h:38,
from /work/01900/liuxueji/oofem/src/sm/lspace.C:35:
/work/01900/liuxueji/oofem/src/oofemlib/intarray.h:310: error: `ContextMode' has not been declared
/work/01900/liuxueji/oofem/src/oofemlib/intarray.h:310: error: ISO C++ forbids declaration of `mode' with no type
/work/01900/liuxueji/oofem/src/oofemlib/intarray.h:315: error: `ContextMode' has not been declared
/work/01900/liuxueji/oofem/src/oofemlib/intarray.h:315: error: ISO C++ forbids declaration of `mode' with no type
In file included from /work/01900/liuxueji/oofem/src/oofemlib/element.h:45,
from /work/01900/liuxueji/oofem/src/oofemlib/structuralelement.h:38,
from /work/01900/liuxueji/oofem/src/oofemlib/nlstructuralelement.h:38,
from /work/01900/liuxueji/oofem/src/sm/lspace.h:38,
from /work/01900/liuxueji/oofem/src/sm/lspace.C:35:
/work/01900/liuxueji/oofem/src/oofemlib/integrationrule.h:212: error: `ContextMode' has not been declared
/work/01900/liuxueji/oofem/src/oofemlib/integrationrule.h:212: error: ISO C++ forbids declaration of `mode' with no type
/work/01900/liuxueji/oofem/src/oofemlib/integrationrule.h:223: error: `ContextMode' has not been declared
/work/01900/liuxueji/oofem/src/oofemlib/integrationrule.h:223: error: ISO C++ forbids declaration of `mode' with no type
In file included from /work/01900/liuxueji/oofem/src/oofemlib/unknownnumberingscheme.h:38,
from /work/01900/liuxueji/oofem/src/oofemlib/element.h:56,
from /work/01900/liuxueji/oofem/src/oofemlib/structuralelement.h:38,
from /work/01900/liuxueji/oofem/src/oofemlib/nlstructuralelement.h:38,
from /work/01900/liuxueji/oofem/src/sm/lspace.h:38,
from /work/01900/liuxueji/oofem/src/sm/lspace.C:35:
/work/01900/liuxueji/oofem/src/oofemlib/dof.h:412: error: `ContextMode' has not been declared
/work/01900/liuxueji/oofem/src/oofemlib/dof.h:412: error: ISO C++ forbids declaration of `mode' with no type
/work/01900/liuxueji/oofem/src/oofemlib/dof.h:414: error: `ContextMode' has not been declared
/work/01900/liuxueji/oofem/src/oofemlib/dof.h:414: error: ISO C++ forbids declaration of `mode' with no type
In file included from /work/01900/liuxueji/oofem/src/oofemlib/structuralelement.h:38,
from /work/01900/liuxueji/oofem/src/oofemlib/nlstructuralelement.h:38,
from /work/01900/liuxueji/oofem/src/sm/lspace.h:38,
from /work/01900/liuxueji/oofem/src/sm/lspace.C:35:
/work/01900/liuxueji/oofem/src/oofemlib/element.h:987: error: `ContextMode' has not been declared
/work/01900/liuxueji/oofem/src/oofemlib/element.h:987: error: ISO C++ forbids declaration of `mode' with no type
/work/01900/liuxueji/oofem/src/oofemlib/element.h:988: error: `ContextMode' has not been declared
/work/01900/liuxueji/oofem/src/oofemlib/element.h:988: error: ISO C++ forbids declaration of `mode' with no type
In file included from /work/01900/liuxueji/oofem/src/oofemlib/structuralelement.h:40,
from /work/01900/liuxueji/oofem/src/oofemlib/nlstructuralelement.h:38,
from /work/01900/liuxueji/oofem/src/sm/lspace.h:38,
from /work/01900/liuxueji/oofem/src/sm/lspace.C:35:
/work/01900/liuxueji/oofem/src/oofemlib/domain.h:407: error: `ContextMode' has not been declared
/work/01900/liuxueji/oofem/src/oofemlib/domain.h:407: error: ISO C++ forbids declaration of `mode' with no type
/work/01900/liuxueji/oofem/src/oofemlib/domain.h:423: error: `ContextMode' has not been declared
/work/01900/liuxueji/oofem/src/oofemlib/domain.h:423: error: ISO C++ forbids declaration of `mode' with no type
In file included from /work/01900/liuxueji/oofem/src/oofemlib/fieldmanager.h:38,
from /work/01900/liuxueji/oofem/src/oofemlib/engngm.h:42,
from /work/01900/liuxueji/oofem/src/oofemlib/processcomm.h:41,
from /work/01900/liuxueji/oofem/src/oofemlib/communicator.h:40,
from /work/01900/liuxueji/oofem/src/oofemlib/problemcomm.h:41,
from /work/01900/liuxueji/oofem/src/oofemlib/nodalrecoverymodel.h:47,
from /work/01900/liuxueji/oofem/src/oofemlib/zznodalrecoverymodel.h:40,
from /work/01900/liuxueji/oofem/src/sm/lspace.h:40,
from /work/01900/liuxueji/oofem/src/sm/lspace.C:35:
/work/01900/liuxueji/oofem/src/oofemlib/field.h:125: error: `ContextMode' has not been declared
/work/01900/liuxueji/oofem/src/oofemlib/field.h:125: error: ISO C++ forbids declaration of `mode' with no type
/work/01900/liuxueji/oofem/src/oofemlib/field.h:134: error: `ContextMode' has not been declared
/work/01900/liuxueji/oofem/src/oofemlib/field.h:134: error: ISO C++ forbids declaration of `mode' with no type
In file included from /work/01900/liuxueji/oofem/src/oofemlib/xfem/xfemmanager.h:45,
from /work/01900/liuxueji/oofem/src/oofemlib/engngm.h:57,
from /work/01900/liuxueji/oofem/src/oofemlib/processcomm.h:41,
from /work/01900/liuxueji/oofem/src/oofemlib/communicator.h:40,
from /work/01900/liuxueji/oofem/src/oofemlib/problemcomm.h:41,
from /work/01900/liuxueji/oofem/src/oofemlib/nodalrecoverymodel.h:47,
from /work/01900/liuxueji/oofem/src/oofemlib/zznodalrecoverymodel.h:40,
from /work/01900/liuxueji/oofem/src/sm/lspace.h:40,
from /work/01900/liuxueji/oofem/src/sm/lspace.C:35:
/work/01900/liuxueji/oofem/src/oofemlib/timestep.h:195: error: `ContextMode' has not been declared
/work/01900/liuxueji/oofem/src/oofemlib/timestep.h:195: error: ISO C++ forbids declaration of `mode' with no type
/work/01900/liuxueji/oofem/src/oofemlib/timestep.h:200: error: `ContextMode' has not been declared
/work/01900/liuxueji/oofem/src/oofemlib/timestep.h:200: error: ISO C++ forbids declaration of `mode' with no type
In file included from /work/01900/liuxueji/oofem/src/oofemlib/engngm.h:57,
from /work/01900/liuxueji/oofem/src/oofemlib/processcomm.h:41,
from /work/01900/liuxueji/oofem/src/oofemlib/communicator.h:40,
from /work/01900/liuxueji/oofem/src/oofemlib/problemcomm.h:41,
from /work/01900/liuxueji/oofem/src/oofemlib/nodalrecoverymodel.h:47,
from /work/01900/liuxueji/oofem/src/oofemlib/zznodalrecoverymodel.h:40,
from /work/01900/liuxueji/oofem/src/sm/lspace.h:40,
from /work/01900/liuxueji/oofem/src/sm/lspace.C:35:
/work/01900/liuxueji/oofem/src/oofemlib/xfem/xfemmanager.h:136: error: `ContextMode' has not been declared
/work/01900/liuxueji/oofem/src/oofemlib/xfem/xfemmanager.h:136: error: ISO C++ forbids declaration of `mode' with no type
/work/01900/liuxueji/oofem/src/oofemlib/xfem/xfemmanager.h:145: error: `ContextMode' has not been declared
/work/01900/liuxueji/oofem/src/oofemlib/xfem/xfemmanager.h:145: error: ISO C++ forbids declaration of `mode' with no type
In file included from /opt/apps/intel10_1/mvapich1_1_0_1/petsc/3.2/include/petscis.h:7,
from /opt/apps/intel10_1/mvapich1_1_0_1/petsc/3.2/include/petscvec.h:9,
from /work/01900/liuxueji/oofem/src/oofemlib/petsccontext.h:41,
from /work/01900/liuxueji/oofem/src/oofemlib/engngm.h:67,
from /work/01900/liuxueji/oofem/src/oofemlib/processcomm.h:41,
from /work/01900/liuxueji/oofem/src/oofemlib/communicator.h:40,
from /work/01900/liuxueji/oofem/src/oofemlib/problemcomm.h:41,
from /work/01900/liuxueji/oofem/src/oofemlib/nodalrecoverymodel.h:47,
from /work/01900/liuxueji/oofem/src/oofemlib/zznodalrecoverymodel.h:40,
from /work/01900/liuxueji/oofem/src/sm/lspace.h:40,
from /work/01900/liuxueji/oofem/src/sm/lspace.C:35:
/opt/apps/intel10_1/mvapich1_1_0_1/petsc/3.2/include/petscsys.h:217: error: `__int64' does not name a type
In file included from /opt/apps/intel10_1/mvapich1_1_0_1/petsc/3.2/include/petscsys.h:1279,
from /opt/apps/intel10_1/mvapich1_1_0_1/petsc/3.2/include/petscis.h:7,
from /opt/apps/intel10_1/mvapich1_1_0_1/petsc/3.2/include/petscvec.h:9,
from /work/01900/liuxueji/oofem/src/oofemlib/petsccontext.h:41,
from /work/01900/liuxueji/oofem/src/oofemlib/engngm.h:67,
from /work/01900/liuxueji/oofem/src/oofemlib/processcomm.h:41,
from /work/01900/liuxueji/oofem/src/oofemlib/communicator.h:40,
from /work/01900/liuxueji/oofem/src/oofemlib/problemcomm.h:41,
from /work/01900/liuxueji/oofem/src/oofemlib/nodalrecoverymodel.h:47,
from /work/01900/liuxueji/oofem/src/oofemlib/zznodalrecoverymodel.h:40,
from /work/01900/liuxueji/oofem/src/sm/lspace.h:40,
from /work/01900/liuxueji/oofem/src/sm/lspace.C:35:
/opt/apps/intel10_1/mvapich1_1_0_1/petsc/3.2/include/petscviewer.h:277:18: hdf5.h: No such file or directory
In file included from /opt/apps/intel10_1/mvapich1_1_0_1/petsc/3.2/include/petscsys.h:1279,
from /opt/apps/intel10_1/mvapich1_1_0_1/petsc/3.2/include/petscis.h:7,
from /opt/apps/intel10_1/mvapich1_1_0_1/petsc/3.2/include/petscvec.h:9,
from /work/01900/liuxueji/oofem/src/oofemlib/petsccontext.h:41,
from /work/01900/liuxueji/oofem/src/oofemlib/engngm.h:67,
from /work/01900/liuxueji/oofem/src/oofemlib/processcomm.h:41,
from /work/01900/liuxueji/oofem/src/oofemlib/communicator.h:40,
from /work/01900/liuxueji/oofem/src/oofemlib/problemcomm.h:41,
from /work/01900/liuxueji/oofem/src/oofemlib/nodalrecoverymodel.h:47,
from /work/01900/liuxueji/oofem/src/oofemlib/zznodalrecoverymodel.h:40,
from /work/01900/liuxueji/oofem/src/sm/lspace.h:40,
from /work/01900/liuxueji/oofem/src/sm/lspace.C:35:
/opt/apps/intel10_1/mvapich1_1_0_1/petsc/3.2/include/petscviewer.h:278: error: `hid_t' has not been declared
/opt/apps/intel10_1/mvapich1_1_0_1/petsc/3.2/include/petscviewer.h:278: error: ISO C++ forbids declaration of `parameter' with no type
/opt/apps/intel10_1/mvapich1_1_0_1/petsc/3.2/include/petscviewer.h:279: error: `hid_t' has not been declared
/opt/apps/intel10_1/mvapich1_1_0_1/petsc/3.2/include/petscviewer.h:279: error: `hid_t' has not been declared
/opt/apps/intel10_1/mvapich1_1_0_1/petsc/3.2/include/petscviewer.h:279: error: ISO C++ forbids declaration of `parameter' with no type
/opt/apps/intel10_1/mvapich1_1_0_1/petsc/3.2/include/petscviewer.h:279: error: ISO C++ forbids declaration of `parameter' with no type
In file included from /work/01900/liuxueji/oofem/src/oofemlib/petscordering.h:42,
from /work/01900/liuxueji/oofem/src/oofemlib/petsccontext.h:44,
from /work/01900/liuxueji/oofem/src/oofemlib/engngm.h:67,
from /work/01900/liuxueji/oofem/src/oofemlib/processcomm.h:41,
from /work/01900/liuxueji/oofem/src/oofemlib/communicator.h:40,
from /work/01900/liuxueji/oofem/src/oofemlib/problemcomm.h:41,
from /work/01900/liuxueji/oofem/src/oofemlib/nodalrecoverymodel.h:47,
from /work/01900/liuxueji/oofem/src/oofemlib/zznodalrecoverymodel.h:40,
from /work/01900/liuxueji/oofem/src/sm/lspace.h:40,
from /work/01900/liuxueji/oofem/src/sm/lspace.C:35:
/work/01900/liuxueji/oofem/src/oofemlib/dofmanager.h:386: error: `ContextMode' has not been declared
/work/01900/liuxueji/oofem/src/oofemlib/dofmanager.h:386: error: ISO C++ forbids declaration of `mode' with no type
/work/01900/liuxueji/oofem/src/oofemlib/dofmanager.h:387: error: `ContextMode' has not been declared
/work/01900/liuxueji/oofem/src/oofemlib/dofmanager.h:387: error: ISO C++ forbids declaration of `mode' with no type
In file included from /work/01900/liuxueji/oofem/src/oofemlib/processcomm.h:41,
from /work/01900/liuxueji/oofem/src/oofemlib/communicator.h:40,
from /work/01900/liuxueji/oofem/src/oofemlib/problemcomm.h:41,
from /work/01900/liuxueji/oofem/src/oofemlib/nodalrecoverymodel.h:47,
from /work/01900/liuxueji/oofem/src/oofemlib/zznodalrecoverymodel.h:40,
from /work/01900/liuxueji/oofem/src/sm/lspace.h:40,
from /work/01900/liuxueji/oofem/src/sm/lspace.C:35:
/work/01900/liuxueji/oofem/src/oofemlib/engngm.h:568: error: `ContextMode' has not been declared
/work/01900/liuxueji/oofem/src/oofemlib/engngm.h:568: error: ISO C++ forbids declaration of `mode' with no type
/work/01900/liuxueji/oofem/src/oofemlib/engngm.h:586: error: `ContextMode' has not been declared
/work/01900/liuxueji/oofem/src/oofemlib/engngm.h:586: error: ISO C++ forbids declaration of `mode' with no type
In file included from /work/01900/liuxueji/oofem/src/sm/lspace.h:45,
from /work/01900/liuxueji/oofem/src/sm/lspace.C:35:
/work/01900/liuxueji/oofem/src/sm/huertaerrorestimator.h:141: error: `ContextMode' has not been declared
/work/01900/liuxueji/oofem/src/sm/huertaerrorestimator.h:141: error: ISO C++ forbids declaration of `mode' with no type
/work/01900/liuxueji/oofem/src/sm/huertaerrorestimator.h:142: error: `ContextMode' has not been declared
/work/01900/liuxueji/oofem/src/sm/huertaerrorestimator.h:142: error: ISO C++ forbids declaration of `mode' with no type
In file included from /work/01900/liuxueji/oofem/src/sm/lspace.C:36:
/work/01900/liuxueji/oofem/src/oofemlib/node.h:172: error: `ContextMode' has not been declared
/work/01900/liuxueji/oofem/src/oofemlib/node.h:172: error: ISO C++ forbids declaration of `mode' with no type
/work/01900/liuxueji/oofem/src/oofemlib/node.h:173: error: `ContextMode' has not been declared
/work/01900/liuxueji/oofem/src/oofemlib/node.h:173: error: ISO C++ forbids declaration of `mode' with no type
make[2]: *** [src/sm/CMakeFiles/sm.dir/lspace.C.o] Error 1
make[1]: *** [src/sm/CMakeFiles/sm.dir/all] Error 2
make: *** [all] Error 2