-
Notifications
You must be signed in to change notification settings - Fork 22
openMP parallelism for FORTRAN subroutines #65
Copy link
Copy link
Open
Description
I am trying to write another C/C++ wrapper to computer Lstar shell splitting. However while using openmp, I run into issues, which is most likely due to thread safety. For example, I run the parallel for loop for N time steps, with #pragma omp parallel, just using this produces bad values (-1e+31), however if I put make_lstar_shell_splitting1_ in #pragma omp critical, it runs but on single thread, hence I loose the parallelism. Given this, is it safe to say that FORTRAN code is not thread-safe. I also see COMMON blocks in the code (onera_desp_lib.f)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels