Topic: beam01 not working and windows compatibility
Hi all,
I'm trying to get to work beam01. I noticed that there was an error at line 92, IntArray is missing; it must be rewritten as:
beam->setField(IntArray{ 6 }, _IFT_Beam2d_dofstocondense);
I suppose that under linux this would not be a problem, since it has never been fixed before.
Anyway, I get another error when running:
Total number of solution steps 3
_______________________________________________________
Error: (C:\OOFEM_LMAT\oofem_cure\src\oofemlib\floatarray.C:555)
In oofem::FloatArray::assemble:
dimensions of 'fe' (3) and 'loc' (0) mismatch
_______________________________________________________
No backtrace available
Total 1 error(s) and 0 warning(s) reported
oofem exit code 1
this is the stack:
oofem.dll!oofem::FloatArray::assemble(const oofem::FloatArray & fe, const oofem::IntArray & loc) Line 555 C++
oofem.dll!oofem::EngngModel::assembleVectorFromBC(oofem::FloatArray & answer, oofem::TimeStep * tStep, const oofem::VectorAssembler & va, oofem::ValueModeType mode, const oofem::UnknownNumberingScheme & s, oofem::Domain * domain, oofem::FloatArray * eNorms) Line 1087 C++
oofem.dll!oofem::EngngModel::assembleVector(oofem::FloatArray & answer, oofem::TimeStep * tStep, const oofem::VectorAssembler & va, oofem::ValueModeType mode, const oofem::UnknownNumberingScheme & s, oofem::Domain * domain, oofem::FloatArray * eNorms) Line 912 C++
oofem.dll!oofem::LinearStatic::solveYourselfAt(oofem::TimeStep * tStep) Line 230 C++
oofem.dll!oofem::EngngModel::solveYourself() Line 534 C++
oofem.dll!oofem::LinearStatic::solveYourself() Line 182 C++
beam01.exe!main(int argc, char * * argv) Line 202 C++
can you help on that?
Moreover, in order to keep the compatibility under windows:
- in heap.C (saying that “pow is ambiguous”), please change #include <math.h> in #include <mathfem.h> on line 4
- "uint” is a type not supported by VS, please replace with “unsigned int” in all the files ( geometrygenerator.C, quasicontinuum.C )
Giovanni