From c3b0a9d7b2fdec5d3b7f0ffc543079051feedc3a Mon Sep 17 00:00:00 2001 From: ignis Date: Sun, 7 Jul 2019 18:37:21 +0900 Subject: [PATCH] declaration exporter variables --- code/code_gen/post.py | 8 ++++---- code/m_terms.f90 | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/code/code_gen/post.py b/code/code_gen/post.py index d247e41..ecb271f 100644 --- a/code/code_gen/post.py +++ b/code/code_gen/post.py @@ -226,11 +226,11 @@ integer(kind=MPI_OFFSET_KIND) :: offset fmt_decl=''' ! - file_handles and mpi_infos -! integer(kind=MPI_INTEGER_KIND) :: {field_name}_fh -! integer(kind=MPI_INTEGER_KIND) :: {field_name}_info +integer(kind=MPI_INTEGER_KIND) :: {field_name}_fh +integer(kind=MPI_INTEGER_KIND) :: {field_name}_info ! - buffer -! real*8, allocatable, dimension(:,:,:) :: {field_name}_export_array +real*8, allocatable, dimension(:,:,:) :: {field_name}_export_array ''' fmt_init=''' @@ -277,7 +277,7 @@ integer(kind=MPI_OFFSET_KIND) :: offset return FieldExporter.fmt_calc # real_array_loop.format((self.array, rhs), self.comment) def code_decl (self): - return FieldExporter.fmt_decl # real_array_decl.format(self.name, self.dim) + return FieldExporter.fmt_decl.format(field_name=self.name) def code_alloc (self): return FieldExporter.fmt_init # real_array_alloc.format(self.name, self.shape) diff --git a/code/m_terms.f90 b/code/m_terms.f90 index 2e9d2a9..9fdb607 100644 --- a/code/m_terms.f90 +++ b/code/m_terms.f90 @@ -18,11 +18,11 @@ integer(kind=MPI_OFFSET_KIND) :: offset ! - file_handles and mpi_infos -! integer(kind=MPI_INTEGER_KIND) :: {field_name}_fh -! integer(kind=MPI_INTEGER_KIND) :: {field_name}_info +integer(kind=MPI_INTEGER_KIND) :: divn_fh +integer(kind=MPI_INTEGER_KIND) :: divn_info ! - buffer -! real*8, allocatable, dimension(:,:,:) :: {field_name}_export_array +real*8, allocatable, dimension(:,:,:) :: divn_export_array real*8, allocatable, dimension(:,:,:) :: xyzbuffer0 real*8, allocatable, dimension(:,:,:) :: xyzbuffer1