/[MITgcm]/MITgcm/pkg/mdsio/MDSIO_BUFF_WH.h
ViewVC logotype

Annotation of /MITgcm/pkg/mdsio/MDSIO_BUFF_WH.h

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Fri Sep 24 18:39:35 2010 UTC (13 years, 8 months ago) by gforget
Branch: MAIN
File MIME type: text/plain
o eesup and pkg/mdsio: ALLOW_WHIO

  Option to write/read 2D fields to files including tiles halos.
  The main purpose is for adjoint related "tape I/O".
  The secondary purpose is for debugging phases.

  A word on those rather specifically intended purposes.
  The code was meant to be stripped down to the bare minimum.
  Typically, there is a unique and basic mapping to the global
  buffer (tile by tile, then proc by proc, then level by level), and
  byteswaps and meta-files are omitted. Indeed the (*_WH*) code is not
  meant to generate user friendly outputs of various shapes and forms.
  Rather it is intended, for the knowledgeabale developers,
  to be largely independent of the many mdsio options, to allow
  outputs of tiles+halos in debugging phases and in adjoint runs,
  and to allow some flexibility in tuning (adoint) I/O depending on each
  file system behavior. With regard to tuning, most of the potential knobs
  (to leave files open, to allocate the I/O indep. of usesinglecpuio,
  to specify directories, to specify the typical size of I/O calls, etc.)
  are not yet included, and will be added if they prove useful.

1 gforget 1.1 C $Header: /u/gcmpack/MITgcm/pkg/mdsio/MDSIO_BUFF_WH.h,v 1.1 2010/09/24 14:38:54 gforget Exp $
2     C $Name: $
3    
4     CBOP
5     C !ROUTINE: MDSIO_BUFF_WH.h
6     C !INTERFACE:
7     C include "MDSIO_BUFF_WH.h"
8     C
9     C !DESCRIPTION:
10     C *==========================================================*
11     C | MDSIO_BUFF_WH.h
12     C | o Shared Buffers used for I/O WITH HALOS
13     C *==========================================================*
14     CEOP
15    
16     C-- COMMON /MDS_WH_BUFFERS/ Shared Local Buffers With Halos
17     C Those buffers have be in common block to be shared by all threads
18     C fld2d_procbuff_rx :: Heap storage buffer to which master thread
19     C read-in/write-from data which all threads copy from
20     C (during read) or copy to (during write).
21     COMMON /MDS_WH_BUFFERS/ fld2d_procbuff_r8, fld2d_procbuff_r4
22     Real*8 fld2d_procbuff_r8( (sNx+2*Olx)*(sNy+2*Oly)*nSx*nSy )
23     Real*4 fld2d_procbuff_r4( (sNx+2*Olx)*(sNy+2*Oly)*nSx*nSy )
24    
25     C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|

  ViewVC Help
Powered by ViewVC 1.1.22