1

(1 replies, posted in General Help)

I am now trying to add a seismic load for structural analysis. But find no test example in the tests directory in the source.zip file. Could any one provide me one. Thank you very much!

I followed the module Windows installation with Visual Studio in the website http://www.oofem.org/wiki/doku.php?id=i … t_version. And I deselected the option  USE_SHARED_LIB in CMake. But when I am compiling in VS, such error occurred, and the compiling failed...

Warning    1494    warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc    F:\Visual Studio 2012\VC\include\xlocale    337    1    oofem
Warning    1495    warning C4101: 'c' : unreferenced local variable    C:\oofem.git\src\main\main.C    302    1    oofem
Error    1496    error LNK1104: cannot open file 'C:\Build\src\oofemlib\core.dir\Debug\heap.obj'    C:\Build\LINK    oofem

and the information corresponding to the warnings are
in xlocal.C

    locale(const locale& _Loc, const locale& _Other,
        category _Cat)
        : _Ptr(_Locimp::_New_Locimp(*_Loc._Ptr))
        {    // construct a locale by copying named facets
        _TRY_BEGIN
        _BEGIN_LOCINFO(_Lobj(_Loc._Ptr->_Catmask, _Loc._Ptr->_Name.c_str()))
            _Locimp::_Makeloc(_Lobj._Addcats(_Cat & _Other._Ptr->_Catmask,
                _Other._Ptr->_Name.c_str()), _Cat, _Ptr, &_Other);
        _END_LOCINFO()
        _CATCH_ALL
        _DELETE_CRT(_Ptr->_Decref());
        _RERAISE;
        _CATCH_END
        }

in main.C
    try {
        problem->solveYourself();
    } catch(OOFEM_Terminate & c) {
        delete problem;

        oofem_finalize_modules();

        return 1;
    }

What is the cause of these warnings and error?

Got it.  I get uneasy the phenomenon which is different from other program, such as OpenSEES.

Thanks a lot.

nitramkaroh wrote:

I guess that the oofem just started and ended immediately, because you did not specified the input file. You can run it as oofem -f nameOfInputFile. You can try one of tests file which are located in the test folder.

I downloaded the OOFEM_Win_AMD64 from the download page of OOFEM.org. But after I unziped the oofem 2.4.zip file and put the oofem.dll, the oofem.lib and the oofem.exe together,  I found as soon as I open the oofem.exe, it shut down immediately, can anyone give me an  answer to the question...