Skip to content

openMP parallelism for FORTRAN subroutines #65

@sahiljhawar

Description

@sahiljhawar

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions