mirror of
https://gitlab.com/scemama/irpf90.git
synced 2024-12-22 12:23:32 +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",
|
"\tIRPF90FLAGS += -j",
|
||||||
"else ifeq ($(BUILD_SYSTEM),make)",
|
"else ifeq ($(BUILD_SYSTEM),make)",
|
||||||
"\tBUILD_FILE=IRPF90_temp/build.make",
|
"\tBUILD_FILE=IRPF90_temp/build.make",
|
||||||
"\tBUILD_SYSTEM += -j",
|
|
||||||
"else",
|
"else",
|
||||||
"DUMMY:",
|
"DUMMY:",
|
||||||
"\t$(error 'Wrong BUILD_SYSTEM: $(BUILD_SYSTEM)')",
|
"\t$(error 'Wrong BUILD_SYSTEM: $(BUILD_SYSTEM)')",
|
||||||
|
@ -85,9 +85,9 @@ subroutine irp_enter(irp_where)
|
|||||||
nthread = 1
|
nthread = 1
|
||||||
"""
|
"""
|
||||||
txt += """
|
txt += """
|
||||||
print *, 'Allocating irp_stack(',STACKMAX,',',0:nthread,')'
|
print *, 'Allocating irp_stack(' , STACKMAX , ',0:', nthread, ')'
|
||||||
print *, 'Allocating irp_cpu(',STACKMAX,',',0:nthread,')'
|
print *, 'Allocating irp_cpu(' , STACKMAX , ',0:', nthread , ')'
|
||||||
print *, 'Allocating stack_index(',0:nthread,')'
|
print *, 'Allocating stack_index(0:', nthread, ')'
|
||||||
endif"""
|
endif"""
|
||||||
txt +="""
|
txt +="""
|
||||||
$2
|
$2
|
||||||
@ -128,9 +128,9 @@ $1
|
|||||||
nthread = 1
|
nthread = 1
|
||||||
"""
|
"""
|
||||||
txt +="""
|
txt +="""
|
||||||
print *, 'Allocating irp_stack(',STACKMAX,',',0:nthread,')'
|
print *, 'Allocating irp_stack(',STACKMAX,',0:',nthread,')'
|
||||||
print *, 'Allocating irp_cpu(',STACKMAX,',',0:nthread,')'
|
print *, 'Allocating irp_cpu(',STACKMAX,',0:',nthread,')'
|
||||||
print *, 'Allocating stack_index(',0:nthread,')'
|
print *, 'Allocating stack_index(0:',nthread,')'
|
||||||
endif
|
endif
|
||||||
"""
|
"""
|
||||||
txt += """
|
txt += """
|
||||||
@ -197,9 +197,9 @@ end subroutine
|
|||||||
irp_stack(stack_index(1),1) = irp_where"""
|
irp_stack(stack_index(1),1) = irp_where"""
|
||||||
if do_memory:
|
if do_memory:
|
||||||
txt+="""
|
txt+="""
|
||||||
print *, 'Allocating irp_stack(',STACKMAX,','0:nthread,')'
|
print *, 'Allocating irp_stack(',STACKMAX,'0:',nthread,')'
|
||||||
print *, 'Allocating irp_cpu(',STACKMAX,','0:nthread,')'
|
print *, 'Allocating irp_cpu(',STACKMAX,'0:',nthread,')'
|
||||||
print *, 'Allocating stack_index(',0:nthread,')'"""
|
print *, 'Allocating stack_index(0:',nthread,')'"""
|
||||||
else:
|
else:
|
||||||
s = ""
|
s = ""
|
||||||
txt = txt.replace("$1",s)
|
txt = txt.replace("$1",s)
|
||||||
|
@ -91,6 +91,9 @@ def main():
|
|||||||
if not command_line.do_run:
|
if not command_line.do_run:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
import irp_stack
|
||||||
|
irp_stack.create()
|
||||||
|
|
||||||
comm_world.create_buildfile(command_line.do_ninja)
|
comm_world.create_buildfile(command_line.do_ninja)
|
||||||
comm_world.write_modules()
|
comm_world.write_modules()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user