declare exporter common variable
This commit is contained in:
parent
5551782ecd
commit
6f906f10c8
2 changed files with 7 additions and 5 deletions
|
|
@ -220,10 +220,8 @@ class FieldBase (object):
|
||||||
class FieldExporter (object):
|
class FieldExporter (object):
|
||||||
|
|
||||||
mpi_io_decl='''
|
mpi_io_decl='''
|
||||||
! - common
|
! field exporter common
|
||||||
! integer(kind=MPI_OFFSET_KIND) :: offset
|
integer(kind=MPI_OFFSET_KIND) :: offset
|
||||||
! integer(kind=MPI_INTEGER_KIND) :: mpi_err
|
|
||||||
! integer(kind=MPI_INTEGER_KIND) :: count
|
|
||||||
'''
|
'''
|
||||||
|
|
||||||
fmt_decl='''
|
fmt_decl='''
|
||||||
|
|
@ -837,7 +835,7 @@ close (200)
|
||||||
|
|
||||||
md = {}
|
md = {}
|
||||||
md["module_name"] = "terms"
|
md["module_name"] = "terms"
|
||||||
md["module_data"] = "\n".join((declf, declh, declavg, decl_export, declarr))
|
md["module_data"] = "\n".join((declf, declh, declavg, FieldExporter.mpi_io_decl, decl_export, declarr))
|
||||||
md["module_init"] = "\n".join((allocavg, alloc_export, allocarr))
|
md["module_init"] = "\n".join((allocavg, alloc_export, allocarr))
|
||||||
md["module_finalize"] = "\n".join((freeavg, free_export, freearr))
|
md["module_finalize"] = "\n".join((freeavg, free_export, freearr))
|
||||||
md["module_pass1"] = sub_calc1
|
md["module_pass1"] = sub_calc1
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,10 @@ real*8, allocatable, dimension(:) :: avg_c
|
||||||
real*8, allocatable, dimension(:) :: avg_fsd
|
real*8, allocatable, dimension(:) :: avg_fsd
|
||||||
real*8, allocatable, dimension(:) :: avg_divn
|
real*8, allocatable, dimension(:) :: avg_divn
|
||||||
|
|
||||||
|
! field exporter common
|
||||||
|
integer(kind=MPI_OFFSET_KIND) :: offset
|
||||||
|
|
||||||
|
|
||||||
! - file_handles and mpi_infos
|
! - file_handles and mpi_infos
|
||||||
! integer(kind=MPI_INTEGER_KIND) :: {field_name}_fh
|
! integer(kind=MPI_INTEGER_KIND) :: {field_name}_fh
|
||||||
! integer(kind=MPI_INTEGER_KIND) :: {field_name}_info
|
! integer(kind=MPI_INTEGER_KIND) :: {field_name}_info
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue