mfem / mfem

Lightweight, general, scalable C++ library for finite element methods
http://mfem.org
BSD 3-Clause "New" or "Revised" License
1.75k stars 502 forks source link

win10 ex1 running #2103

Closed Haikuana closed 3 years ago

Haikuana commented 3 years ago

Hi,

I built this project via cmake 3.15 on win10, it compiles successfully, however, when I run the ex1, it shows some errors: mfem::Memory<mfem::IntegrationRule * __ptr64>::operator returned nullptr.

It breaks down when > ex1.exe!mfem::`dynamic initializer for 'IntRules''() Line 877 in intrules.cpp, could you please help figure out what happened?

Thanks

tzanio commented 3 years ago

Did you use WLS, Visual Studio or something else?

Haikuana commented 3 years ago

yes, I use Visual Studio 2015.

liangcheng commented 3 years ago

I just tried R4.2/ex1 on Win10 for you and cannot reproduce this issue. Did you select the /machine:x64 at CMake configuration?

Haikuana commented 3 years ago

It works on VS 2019 rather than VS 2015, it seems weird.

ajithvcoder commented 2 years ago

@Haikuana were u able to run parallel version in windows by linking hypre and metis libraries ?

Haikuana commented 2 years ago

@ajithvallabai I used default openmp, I recommend you can try linux to link these libs. it should be easier!

v-dobrev commented 2 years ago

We test the build with Visual Studio with MPI+hypre+metis in the appveyor CI, see the commands we use in https://github.com/mfem/mfem/blob/master/.appveyor.yml. We only run the serial examples on appveyor, so it is possible there maybe some runtime issues with the parallel build that we do not catch.