neperfepx / neper

Polycrystal generation and meshing
http://neper.info
GNU General Public License v3.0
198 stars 53 forks source link

Incompatibility with DHAVE_OPENMP=OFF #685

Closed sylm21 closed 1 year ago

sylm21 commented 1 year ago

Describe the bug

Error during linking on ubuntu with wsl

The file neut/neut_mesh/neut_mesh_op/neut_mesh_op.c

Doesn't have flag compilation in line 2048. I have add this and it's ok

#ifdef HAVE_OPENMP
#pragma omp parallel
  if (omp_get_thread_num() != 0)
  {
    printf ("\nneut_mesh_init_simeltori is not thread-safe!\n");
    ut_print_neperbug ();
  }
#endif

Thanks

rquey commented 1 year ago

Fixed in version 4.6.1-1. Thanks @sylm21.

sylm21 commented 1 year ago

Thanks