Skip to content

Commit

Permalink
FIXUP: Implement prif_get_team
Browse files Browse the repository at this point in the history
Fortran does not guarantee short-circuit evaluation of boolean expressions,
and this one was crashing with flang-new
  • Loading branch information
bonachea committed Jan 14, 2025
1 parent 359063c commit 75a924a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/caffeine/teams_s.f90
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@
end procedure

module procedure prif_get_team
if (.not. present(level) .or. level == PRIF_CURRENT_TEAM) then
if (.not. present(level)) then
team = current_team
else if (level == PRIF_CURRENT_TEAM) then
team = current_team
else if (level == PRIF_PARENT_TEAM) then
team = prif_team_type(current_team%info%parent_team)
Expand Down

0 comments on commit 75a924a

Please sign in to comment.