mirror of
https://gitlab.com/scemama/irpf90.git
synced 2024-12-22 04:13:33 +01:00
Broken irp_stack
This commit is contained in:
parent
23d9daaba5
commit
30bb28894b
@ -319,7 +319,6 @@ def create_makefile(d_flags,d_var,irpf90_flags,ninja=True):
|
||||
"\tIRPF90FLAGS += -j",
|
||||
"else ifeq ($(BUILD_SYSTEM),make)",
|
||||
"\tBUILD_FILE=IRPF90_temp/build.make",
|
||||
"\tBUILD_SYSTEM += -j",
|
||||
"else",
|
||||
"DUMMY:",
|
||||
"\t$(error 'Wrong BUILD_SYSTEM: $(BUILD_SYSTEM)')",
|
||||
|
@ -85,9 +85,9 @@ subroutine irp_enter(irp_where)
|
||||
nthread = 1
|
||||
"""
|
||||
txt += """
|
||||
print *, 'Allocating irp_stack(',STACKMAX,',',0:nthread,')'
|
||||
print *, 'Allocating irp_cpu(',STACKMAX,',',0:nthread,')'
|
||||
print *, 'Allocating stack_index(',0:nthread,')'
|
||||
print *, 'Allocating irp_stack(' , STACKMAX , ',0:', nthread, ')'
|
||||
print *, 'Allocating irp_cpu(' , STACKMAX , ',0:', nthread , ')'
|
||||
print *, 'Allocating stack_index(0:', nthread, ')'
|
||||
endif"""
|
||||
txt +="""
|
||||
$2
|
||||
@ -128,9 +128,9 @@ $1
|
||||
nthread = 1
|
||||
"""
|
||||
txt +="""
|
||||
print *, 'Allocating irp_stack(',STACKMAX,',',0:nthread,')'
|
||||
print *, 'Allocating irp_cpu(',STACKMAX,',',0:nthread,')'
|
||||
print *, 'Allocating stack_index(',0:nthread,')'
|
||||
print *, 'Allocating irp_stack(',STACKMAX,',0:',nthread,')'
|
||||
print *, 'Allocating irp_cpu(',STACKMAX,',0:',nthread,')'
|
||||
print *, 'Allocating stack_index(0:',nthread,')'
|
||||
endif
|
||||
"""
|
||||
txt += """
|
||||
@ -197,9 +197,9 @@ end subroutine
|
||||
irp_stack(stack_index(1),1) = irp_where"""
|
||||
if do_memory:
|
||||
txt+="""
|
||||
print *, 'Allocating irp_stack(',STACKMAX,','0:nthread,')'
|
||||
print *, 'Allocating irp_cpu(',STACKMAX,','0:nthread,')'
|
||||
print *, 'Allocating stack_index(',0:nthread,')'"""
|
||||
print *, 'Allocating irp_stack(',STACKMAX,'0:',nthread,')'
|
||||
print *, 'Allocating irp_cpu(',STACKMAX,'0:',nthread,')'
|
||||
print *, 'Allocating stack_index(0:',nthread,')'"""
|
||||
else:
|
||||
s = ""
|
||||
txt = txt.replace("$1",s)
|
||||
|
@ -91,6 +91,9 @@ def main():
|
||||
if not command_line.do_run:
|
||||
return
|
||||
|
||||
import irp_stack
|
||||
irp_stack.create()
|
||||
|
||||
comm_world.create_buildfile(command_line.do_ninja)
|
||||
comm_world.write_modules()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user