mirror of
https://gitlab.com/scemama/irpf90.git
synced 2024-12-22 04:13:33 +01:00
Improved thread check in irp_stack
This commit is contained in:
parent
70c0d04aed
commit
7ef27a5817
@ -58,12 +58,17 @@ subroutine irp_enter(irp_where)
|
|||||||
ithread = 0
|
ithread = 0
|
||||||
!$ ithread = omp_get_thread_num()
|
!$ ithread = omp_get_thread_num()
|
||||||
$1
|
$1
|
||||||
|
"""
|
||||||
|
|
||||||
|
if not command_line.do_openmp:
|
||||||
|
txt += """
|
||||||
if (ithread /= 0) then
|
if (ithread /= 0) then
|
||||||
print *, 'Error: Provider is called by thread', ithread
|
print *, 'Error: Provider is called by thread', ithread
|
||||||
call irp_trace
|
call irp_trace
|
||||||
stop 1
|
stop 1
|
||||||
endif
|
endif
|
||||||
"""
|
"""
|
||||||
|
|
||||||
if command_line.do_memory:
|
if command_line.do_memory:
|
||||||
txt+="""
|
txt+="""
|
||||||
if (.not.alloc) then
|
if (.not.alloc) then
|
||||||
|
@ -1 +1 @@
|
|||||||
version = "1.4.2"
|
version = "1.4.3"
|
||||||
|
Loading…
Reference in New Issue
Block a user