\hypertarget{namespacemod__oasis__io}{}\section{mod\+\_\+oasis\+\_\+io Module Reference}
\label{namespacemod__oasis__io}\index{mod\+\_\+oasis\+\_\+io@{mod\+\_\+oasis\+\_\+io}}


Provides reusable IO routines for O\+A\+S\+IS.  


\subsection*{Functions/\+Subroutines}
\begin{DoxyCompactItemize}
\item 
logical function, public \hyperlink{namespacemod__oasis__io_a4d0f5cb29eabc798e857127c8c174d85}{oasis\+\_\+io\+\_\+varexists} (filename, fldname)
\begin{DoxyCompactList}\small\item\em Checks whether the var fldname is in the file. \end{DoxyCompactList}\item 
subroutine, public \hyperlink{namespacemod__oasis__io_a6c14bebb7b216218e25f599e3469ae0c}{oasis\+\_\+io\+\_\+read\+\_\+avfld} (filename, av, gsmap, mpicom, avfld, filefld, fldtype)
\begin{DoxyCompactList}\small\item\em Reads single field from a file into an attribute Vector. \end{DoxyCompactList}\item 
subroutine, public \hyperlink{namespacemod__oasis__io_ad8a48d6c36e3fac637a8191c20e514f2}{oasis\+\_\+io\+\_\+write\+\_\+avfile} (rstfile, av, gsmap, mpicom, nx, ny, nampre)
\begin{DoxyCompactList}\small\item\em Writes all fields from an attribute vector to a file. \end{DoxyCompactList}\item 
subroutine, public \hyperlink{namespacemod__oasis__io_a65e17e4a065e8e4dea33754fb9c1d32c}{oasis\+\_\+io\+\_\+read\+\_\+avfile} (rstfile, av, gsmap, mpicom, abort, nampre, didread)
\begin{DoxyCompactList}\small\item\em Reads all fields for an attribute vector from a file. \end{DoxyCompactList}\item 
subroutine, public \hyperlink{namespacemod__oasis__io_a8b604f89345d74c74c6bc3b4760b2e29}{oasis\+\_\+io\+\_\+read\+\_\+array} (rstfile, mpicom, iarray, ivarname, rarray, rvarname, abort)
\begin{DoxyCompactList}\small\item\em Reads an integer or real field from a file into an array. \end{DoxyCompactList}\item 
subroutine, public \hyperlink{namespacemod__oasis__io_a9ac8ce0ba3223fb59f7f003b50b229cf}{oasis\+\_\+io\+\_\+write\+\_\+array} (rstfile, mpicom, iarray, ivarname, rarray, rvarname)
\begin{DoxyCompactList}\small\item\em Writes a real or integer array to a file. \end{DoxyCompactList}\item 
subroutine, public \hyperlink{namespacemod__oasis__io_a42b325557a774b08d4cba24f387f8b01}{oasis\+\_\+io\+\_\+write\+\_\+avfbf} (av, gsmap, mpicom, nx, ny, msec, f\+\_\+string, filename)
\begin{DoxyCompactList}\small\item\em Write each field in an attribute vector to an individual files. \end{DoxyCompactList}\item 
subroutine, public \hyperlink{namespacemod__oasis__io_ac4a465a698824fb473074bfbd3d92f79}{oasis\+\_\+io\+\_\+read\+\_\+avfbf} (av, gsmap, mpicom, msec, f\+\_\+string, filename)
\begin{DoxyCompactList}\small\item\em Read each field in an attribute vector from individual files. \end{DoxyCompactList}\item 
subroutine, public \hyperlink{namespacemod__oasis__io_af080505b4678a5c68916a700f54ac6e6}{oasis\+\_\+io\+\_\+read\+\_\+field\+\_\+fromroot} (filename, fldname, ifld2, fld2, fld3, nx, ny, nz)
\begin{DoxyCompactList}\small\item\em Read a field on the root task from a file into an array. \end{DoxyCompactList}\item 
subroutine, public \hyperlink{namespacemod__oasis__io_a18912324646473cf8fedd7138cc59a79}{oasis\+\_\+io\+\_\+write\+\_\+2dgridfld\+\_\+fromroot} (filename, fldname, fld, nx, ny)
\begin{DoxyCompactList}\small\item\em Write a real array named field from the root task to a file. \end{DoxyCompactList}\item 
subroutine, public \hyperlink{namespacemod__oasis__io_a432ecb26e0e2d8387c1601ea6cc68668}{oasis\+\_\+io\+\_\+write\+\_\+2dgridint\+\_\+fromroot} (filename, fldname, fld, nx, ny)
\begin{DoxyCompactList}\small\item\em Write an integer array named field from the root task to a file. \end{DoxyCompactList}\item 
subroutine, public \hyperlink{namespacemod__oasis__io_aa967e930e5d6199bbc6ec9a4f3c7069e}{oasis\+\_\+io\+\_\+write\+\_\+3dgridfld\+\_\+fromroot} (filename, fldname, fld, nx, ny, nc)
\begin{DoxyCompactList}\small\item\em Write a 3d real array named field from the root task to a file. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Provides reusable IO routines for O\+A\+S\+IS. 

\subsection{Function/\+Subroutine Documentation}
\mbox{\Hypertarget{namespacemod__oasis__io_a8b604f89345d74c74c6bc3b4760b2e29}\label{namespacemod__oasis__io_a8b604f89345d74c74c6bc3b4760b2e29}} 
\index{mod\+\_\+oasis\+\_\+io@{mod\+\_\+oasis\+\_\+io}!oasis\+\_\+io\+\_\+read\+\_\+array@{oasis\+\_\+io\+\_\+read\+\_\+array}}
\index{oasis\+\_\+io\+\_\+read\+\_\+array@{oasis\+\_\+io\+\_\+read\+\_\+array}!mod\+\_\+oasis\+\_\+io@{mod\+\_\+oasis\+\_\+io}}
\subsubsection{\texorpdfstring{oasis\+\_\+io\+\_\+read\+\_\+array()}{oasis\_io\_read\_array()}}
{\footnotesize\ttfamily subroutine, public mod\+\_\+oasis\+\_\+io\+::oasis\+\_\+io\+\_\+read\+\_\+array (\begin{DoxyParamCaption}\item[{character(len=$\ast$), intent(in)}]{rstfile,  }\item[{integer(ip\+\_\+i4\+\_\+p), intent(in)}]{mpicom,  }\item[{integer(ip\+\_\+i4\+\_\+p), dimension(\+:), intent(inout), optional}]{iarray,  }\item[{character(len=$\ast$), intent(in), optional}]{ivarname,  }\item[{real(ip\+\_\+double\+\_\+p), dimension(\+:), intent(inout), optional}]{rarray,  }\item[{character(len=$\ast$), intent(in), optional}]{rvarname,  }\item[{logical, intent(in), optional}]{abort }\end{DoxyParamCaption})}



Reads an integer or real field from a file into an array. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em rstfile} & filename\\
\hline
\mbox{\tt in}  & {\em mpicom} & mpi comm\\
\hline
\mbox{\tt in,out}  & {\em iarray} & integer data on root\\
\hline
\mbox{\tt in}  & {\em ivarname} & integer variable name on file\\
\hline
\mbox{\tt in,out}  & {\em rarray} & real data on root\\
\hline
\mbox{\tt in}  & {\em rvarname} & real variable name on file\\
\hline
\mbox{\tt in}  & {\em abort} & abort on error flag, default is true \\
\hline
\end{DoxyParams}


Definition at line 565 of file mod\+\_\+oasis\+\_\+io.\+F90.

\mbox{\Hypertarget{namespacemod__oasis__io_ac4a465a698824fb473074bfbd3d92f79}\label{namespacemod__oasis__io_ac4a465a698824fb473074bfbd3d92f79}} 
\index{mod\+\_\+oasis\+\_\+io@{mod\+\_\+oasis\+\_\+io}!oasis\+\_\+io\+\_\+read\+\_\+avfbf@{oasis\+\_\+io\+\_\+read\+\_\+avfbf}}
\index{oasis\+\_\+io\+\_\+read\+\_\+avfbf@{oasis\+\_\+io\+\_\+read\+\_\+avfbf}!mod\+\_\+oasis\+\_\+io@{mod\+\_\+oasis\+\_\+io}}
\subsubsection{\texorpdfstring{oasis\+\_\+io\+\_\+read\+\_\+avfbf()}{oasis\_io\_read\_avfbf()}}
{\footnotesize\ttfamily subroutine, public mod\+\_\+oasis\+\_\+io\+::oasis\+\_\+io\+\_\+read\+\_\+avfbf (\begin{DoxyParamCaption}\item[{type(mct\+\_\+avect), intent(inout)}]{av,  }\item[{type(mct\+\_\+gsmap), intent(in)}]{gsmap,  }\item[{integer(ip\+\_\+i4\+\_\+p), intent(in)}]{mpicom,  }\item[{integer(ip\+\_\+i4\+\_\+p), intent(in), optional}]{msec,  }\item[{character(len=$\ast$), intent(in), optional}]{f\+\_\+string,  }\item[{character(len=$\ast$), intent(in), optional}]{filename }\end{DoxyParamCaption})}



Read each field in an attribute vector from individual files. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in,out}  & {\em av} & avect\\
\hline
\mbox{\tt in}  & {\em gsmap} & gsmap decomp\\
\hline
\mbox{\tt in}  & {\em mpicom} & mpi comm\\
\hline
\mbox{\tt in}  & {\em msec} & optional time info in seconds\\
\hline
\mbox{\tt in}  & {\em f\+\_\+string} & optional f\+\_\+string to append to filename\\
\hline
\mbox{\tt in}  & {\em filename} & optional input filename \\
\hline
\end{DoxyParams}


Definition at line 1091 of file mod\+\_\+oasis\+\_\+io.\+F90.

\mbox{\Hypertarget{namespacemod__oasis__io_a65e17e4a065e8e4dea33754fb9c1d32c}\label{namespacemod__oasis__io_a65e17e4a065e8e4dea33754fb9c1d32c}} 
\index{mod\+\_\+oasis\+\_\+io@{mod\+\_\+oasis\+\_\+io}!oasis\+\_\+io\+\_\+read\+\_\+avfile@{oasis\+\_\+io\+\_\+read\+\_\+avfile}}
\index{oasis\+\_\+io\+\_\+read\+\_\+avfile@{oasis\+\_\+io\+\_\+read\+\_\+avfile}!mod\+\_\+oasis\+\_\+io@{mod\+\_\+oasis\+\_\+io}}
\subsubsection{\texorpdfstring{oasis\+\_\+io\+\_\+read\+\_\+avfile()}{oasis\_io\_read\_avfile()}}
{\footnotesize\ttfamily subroutine, public mod\+\_\+oasis\+\_\+io\+::oasis\+\_\+io\+\_\+read\+\_\+avfile (\begin{DoxyParamCaption}\item[{character(len=$\ast$), intent(in)}]{rstfile,  }\item[{type(mct\+\_\+avect), intent(inout)}]{av,  }\item[{type(mct\+\_\+gsmap), intent(in)}]{gsmap,  }\item[{integer(ip\+\_\+i4\+\_\+p), intent(in)}]{mpicom,  }\item[{logical, intent(in), optional}]{abort,  }\item[{character(len=$\ast$), intent(in), optional}]{nampre,  }\item[{logical, intent(out), optional}]{didread }\end{DoxyParamCaption})}



Reads all fields for an attribute vector from a file. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em rstfile} & filename\\
\hline
\mbox{\tt in,out}  & {\em av} & avect\\
\hline
\mbox{\tt in}  & {\em gsmap} & gsmap decomp\\
\hline
\mbox{\tt in}  & {\em mpicom} & mpi comm\\
\hline
\mbox{\tt in}  & {\em abort} & abort on error flag, default is true\\
\hline
\mbox{\tt in}  & {\em nampre} & name prepend string for fields on file\\
\hline
\mbox{\tt out}  & {\em didread} & flag indicating that read was successful \\
\hline
\end{DoxyParams}


Definition at line 406 of file mod\+\_\+oasis\+\_\+io.\+F90.

\mbox{\Hypertarget{namespacemod__oasis__io_a6c14bebb7b216218e25f599e3469ae0c}\label{namespacemod__oasis__io_a6c14bebb7b216218e25f599e3469ae0c}} 
\index{mod\+\_\+oasis\+\_\+io@{mod\+\_\+oasis\+\_\+io}!oasis\+\_\+io\+\_\+read\+\_\+avfld@{oasis\+\_\+io\+\_\+read\+\_\+avfld}}
\index{oasis\+\_\+io\+\_\+read\+\_\+avfld@{oasis\+\_\+io\+\_\+read\+\_\+avfld}!mod\+\_\+oasis\+\_\+io@{mod\+\_\+oasis\+\_\+io}}
\subsubsection{\texorpdfstring{oasis\+\_\+io\+\_\+read\+\_\+avfld()}{oasis\_io\_read\_avfld()}}
{\footnotesize\ttfamily subroutine, public mod\+\_\+oasis\+\_\+io\+::oasis\+\_\+io\+\_\+read\+\_\+avfld (\begin{DoxyParamCaption}\item[{character(len=$\ast$), intent(in)}]{filename,  }\item[{type(mct\+\_\+avect), intent(inout)}]{av,  }\item[{type(mct\+\_\+gsmap), intent(in)}]{gsmap,  }\item[{integer(ip\+\_\+i4\+\_\+p), intent(in)}]{mpicom,  }\item[{character(len=$\ast$), intent(in)}]{avfld,  }\item[{character(len=$\ast$), intent(in)}]{filefld,  }\item[{character(len=$\ast$), intent(in), optional}]{fldtype }\end{DoxyParamCaption})}



Reads single field from a file into an attribute Vector. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em filename} & file name\\
\hline
\mbox{\tt in,out}  & {\em av} & avect\\
\hline
\mbox{\tt in}  & {\em gsmap} & gsmap decomp\\
\hline
\mbox{\tt in}  & {\em mpicom} & mpi comm\\
\hline
\mbox{\tt in}  & {\em avfld} & av field name\\
\hline
\mbox{\tt in}  & {\em filefld} & file field name\\
\hline
\mbox{\tt in}  & {\em fldtype} & kind \\
\hline
\end{DoxyParams}


Definition at line 78 of file mod\+\_\+oasis\+\_\+io.\+F90.

\mbox{\Hypertarget{namespacemod__oasis__io_af080505b4678a5c68916a700f54ac6e6}\label{namespacemod__oasis__io_af080505b4678a5c68916a700f54ac6e6}} 
\index{mod\+\_\+oasis\+\_\+io@{mod\+\_\+oasis\+\_\+io}!oasis\+\_\+io\+\_\+read\+\_\+field\+\_\+fromroot@{oasis\+\_\+io\+\_\+read\+\_\+field\+\_\+fromroot}}
\index{oasis\+\_\+io\+\_\+read\+\_\+field\+\_\+fromroot@{oasis\+\_\+io\+\_\+read\+\_\+field\+\_\+fromroot}!mod\+\_\+oasis\+\_\+io@{mod\+\_\+oasis\+\_\+io}}
\subsubsection{\texorpdfstring{oasis\+\_\+io\+\_\+read\+\_\+field\+\_\+fromroot()}{oasis\_io\_read\_field\_fromroot()}}
{\footnotesize\ttfamily subroutine, public mod\+\_\+oasis\+\_\+io\+::oasis\+\_\+io\+\_\+read\+\_\+field\+\_\+fromroot (\begin{DoxyParamCaption}\item[{character(len=$\ast$), intent(in)}]{filename,  }\item[{character(len=$\ast$), intent(in)}]{fldname,  }\item[{integer(ip\+\_\+i4\+\_\+p), dimension(\+:,\+:), intent(inout), optional}]{ifld2,  }\item[{real(ip\+\_\+realwp\+\_\+p), dimension(\+:,\+:), intent(inout), optional}]{fld2,  }\item[{real(ip\+\_\+realwp\+\_\+p), dimension(\+:,\+:,\+:), intent(inout), optional}]{fld3,  }\item[{integer(ip\+\_\+i4\+\_\+p), intent(inout), optional}]{nx,  }\item[{integer(ip\+\_\+i4\+\_\+p), intent(inout), optional}]{ny,  }\item[{integer(ip\+\_\+i4\+\_\+p), intent(inout), optional}]{nz }\end{DoxyParamCaption})}



Read a field on the root task from a file into an array. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em filename} & file name\\
\hline
\mbox{\tt in}  & {\em fldname} & field name\\
\hline
\mbox{\tt in,out}  & {\em ifld2} & 2d integer array\\
\hline
\mbox{\tt in,out}  & {\em fld2} & 2d real array\\
\hline
\mbox{\tt in,out}  & {\em fld3} & 3d real array\\
\hline
\mbox{\tt in,out}  & {\em nx} & global nx size\\
\hline
\mbox{\tt in,out}  & {\em ny} & global ny size\\
\hline
\mbox{\tt in,out}  & {\em nz} & global nz size \\
\hline
\end{DoxyParams}


Definition at line 1254 of file mod\+\_\+oasis\+\_\+io.\+F90.

\mbox{\Hypertarget{namespacemod__oasis__io_a4d0f5cb29eabc798e857127c8c174d85}\label{namespacemod__oasis__io_a4d0f5cb29eabc798e857127c8c174d85}} 
\index{mod\+\_\+oasis\+\_\+io@{mod\+\_\+oasis\+\_\+io}!oasis\+\_\+io\+\_\+varexists@{oasis\+\_\+io\+\_\+varexists}}
\index{oasis\+\_\+io\+\_\+varexists@{oasis\+\_\+io\+\_\+varexists}!mod\+\_\+oasis\+\_\+io@{mod\+\_\+oasis\+\_\+io}}
\subsubsection{\texorpdfstring{oasis\+\_\+io\+\_\+varexists()}{oasis\_io\_varexists()}}
{\footnotesize\ttfamily logical function, public mod\+\_\+oasis\+\_\+io\+::oasis\+\_\+io\+\_\+varexists (\begin{DoxyParamCaption}\item[{character(len=$\ast$), intent(in)}]{filename,  }\item[{character(len=$\ast$), intent(in)}]{fldname }\end{DoxyParamCaption})}



Checks whether the var fldname is in the file. 



Definition at line 42 of file mod\+\_\+oasis\+\_\+io.\+F90.

\mbox{\Hypertarget{namespacemod__oasis__io_a18912324646473cf8fedd7138cc59a79}\label{namespacemod__oasis__io_a18912324646473cf8fedd7138cc59a79}} 
\index{mod\+\_\+oasis\+\_\+io@{mod\+\_\+oasis\+\_\+io}!oasis\+\_\+io\+\_\+write\+\_\+2dgridfld\+\_\+fromroot@{oasis\+\_\+io\+\_\+write\+\_\+2dgridfld\+\_\+fromroot}}
\index{oasis\+\_\+io\+\_\+write\+\_\+2dgridfld\+\_\+fromroot@{oasis\+\_\+io\+\_\+write\+\_\+2dgridfld\+\_\+fromroot}!mod\+\_\+oasis\+\_\+io@{mod\+\_\+oasis\+\_\+io}}
\subsubsection{\texorpdfstring{oasis\+\_\+io\+\_\+write\+\_\+2dgridfld\+\_\+fromroot()}{oasis\_io\_write\_2dgridfld\_fromroot()}}
{\footnotesize\ttfamily subroutine, public mod\+\_\+oasis\+\_\+io\+::oasis\+\_\+io\+\_\+write\+\_\+2dgridfld\+\_\+fromroot (\begin{DoxyParamCaption}\item[{character(len=$\ast$), intent(in)}]{filename,  }\item[{character(len=$\ast$), intent(in)}]{fldname,  }\item[{real(ip\+\_\+realwp\+\_\+p), dimension(\+:,\+:), intent(in)}]{fld,  }\item[{integer(ip\+\_\+i4\+\_\+p), intent(in)}]{nx,  }\item[{integer(ip\+\_\+i4\+\_\+p), intent(in)}]{ny }\end{DoxyParamCaption})}



Write a real array named field from the root task to a file. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em filename} & file name\\
\hline
\mbox{\tt in}  & {\em fldname} & field name\\
\hline
\mbox{\tt in}  & {\em fld} & 2d real field\\
\hline
\mbox{\tt in}  & {\em nx} & 2d global nx size\\
\hline
\mbox{\tt in}  & {\em ny} & 2d global ny size \\
\hline
\end{DoxyParams}


Definition at line 1397 of file mod\+\_\+oasis\+\_\+io.\+F90.

\mbox{\Hypertarget{namespacemod__oasis__io_a432ecb26e0e2d8387c1601ea6cc68668}\label{namespacemod__oasis__io_a432ecb26e0e2d8387c1601ea6cc68668}} 
\index{mod\+\_\+oasis\+\_\+io@{mod\+\_\+oasis\+\_\+io}!oasis\+\_\+io\+\_\+write\+\_\+2dgridint\+\_\+fromroot@{oasis\+\_\+io\+\_\+write\+\_\+2dgridint\+\_\+fromroot}}
\index{oasis\+\_\+io\+\_\+write\+\_\+2dgridint\+\_\+fromroot@{oasis\+\_\+io\+\_\+write\+\_\+2dgridint\+\_\+fromroot}!mod\+\_\+oasis\+\_\+io@{mod\+\_\+oasis\+\_\+io}}
\subsubsection{\texorpdfstring{oasis\+\_\+io\+\_\+write\+\_\+2dgridint\+\_\+fromroot()}{oasis\_io\_write\_2dgridint\_fromroot()}}
{\footnotesize\ttfamily subroutine, public mod\+\_\+oasis\+\_\+io\+::oasis\+\_\+io\+\_\+write\+\_\+2dgridint\+\_\+fromroot (\begin{DoxyParamCaption}\item[{character(len=$\ast$), intent(in)}]{filename,  }\item[{character(len=$\ast$), intent(in)}]{fldname,  }\item[{integer(ip\+\_\+i4\+\_\+p), dimension(\+:,\+:), intent(in)}]{fld,  }\item[{integer(ip\+\_\+i4\+\_\+p), intent(in)}]{nx,  }\item[{integer(ip\+\_\+i4\+\_\+p), intent(in)}]{ny }\end{DoxyParamCaption})}



Write an integer array named field from the root task to a file. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em filename} & file name\\
\hline
\mbox{\tt in}  & {\em fldname} & field name\\
\hline
\mbox{\tt in}  & {\em fld} & integer field\\
\hline
\mbox{\tt in}  & {\em nx} & 2d global nx size\\
\hline
\mbox{\tt in}  & {\em ny} & 2d global ny size \\
\hline
\end{DoxyParams}


Definition at line 1500 of file mod\+\_\+oasis\+\_\+io.\+F90.

\mbox{\Hypertarget{namespacemod__oasis__io_aa967e930e5d6199bbc6ec9a4f3c7069e}\label{namespacemod__oasis__io_aa967e930e5d6199bbc6ec9a4f3c7069e}} 
\index{mod\+\_\+oasis\+\_\+io@{mod\+\_\+oasis\+\_\+io}!oasis\+\_\+io\+\_\+write\+\_\+3dgridfld\+\_\+fromroot@{oasis\+\_\+io\+\_\+write\+\_\+3dgridfld\+\_\+fromroot}}
\index{oasis\+\_\+io\+\_\+write\+\_\+3dgridfld\+\_\+fromroot@{oasis\+\_\+io\+\_\+write\+\_\+3dgridfld\+\_\+fromroot}!mod\+\_\+oasis\+\_\+io@{mod\+\_\+oasis\+\_\+io}}
\subsubsection{\texorpdfstring{oasis\+\_\+io\+\_\+write\+\_\+3dgridfld\+\_\+fromroot()}{oasis\_io\_write\_3dgridfld\_fromroot()}}
{\footnotesize\ttfamily subroutine, public mod\+\_\+oasis\+\_\+io\+::oasis\+\_\+io\+\_\+write\+\_\+3dgridfld\+\_\+fromroot (\begin{DoxyParamCaption}\item[{character(len=$\ast$), intent(in)}]{filename,  }\item[{character(len=$\ast$), intent(in)}]{fldname,  }\item[{real(ip\+\_\+realwp\+\_\+p), dimension(\+:,\+:,\+:), intent(in)}]{fld,  }\item[{integer(ip\+\_\+i4\+\_\+p), intent(in)}]{nx,  }\item[{integer(ip\+\_\+i4\+\_\+p), intent(in)}]{ny,  }\item[{integer(ip\+\_\+i4\+\_\+p), intent(in)}]{nc }\end{DoxyParamCaption})}



Write a 3d real array named field from the root task to a file. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em filename} & file name\\
\hline
\mbox{\tt in}  & {\em fldname} & field name\\
\hline
\mbox{\tt in}  & {\em fld} & 3d real array\\
\hline
\mbox{\tt in}  & {\em nx} & 3d global nx size\\
\hline
\mbox{\tt in}  & {\em ny} & 3d global ny size\\
\hline
\mbox{\tt in}  & {\em nc} & 3d global nz size or nc size for corners \\
\hline
\end{DoxyParams}


Definition at line 1603 of file mod\+\_\+oasis\+\_\+io.\+F90.

\mbox{\Hypertarget{namespacemod__oasis__io_a9ac8ce0ba3223fb59f7f003b50b229cf}\label{namespacemod__oasis__io_a9ac8ce0ba3223fb59f7f003b50b229cf}} 
\index{mod\+\_\+oasis\+\_\+io@{mod\+\_\+oasis\+\_\+io}!oasis\+\_\+io\+\_\+write\+\_\+array@{oasis\+\_\+io\+\_\+write\+\_\+array}}
\index{oasis\+\_\+io\+\_\+write\+\_\+array@{oasis\+\_\+io\+\_\+write\+\_\+array}!mod\+\_\+oasis\+\_\+io@{mod\+\_\+oasis\+\_\+io}}
\subsubsection{\texorpdfstring{oasis\+\_\+io\+\_\+write\+\_\+array()}{oasis\_io\_write\_array()}}
{\footnotesize\ttfamily subroutine, public mod\+\_\+oasis\+\_\+io\+::oasis\+\_\+io\+\_\+write\+\_\+array (\begin{DoxyParamCaption}\item[{character(len=$\ast$), intent(in)}]{rstfile,  }\item[{integer(ip\+\_\+i4\+\_\+p), intent(in)}]{mpicom,  }\item[{integer(ip\+\_\+i4\+\_\+p), dimension(\+:), intent(in), optional}]{iarray,  }\item[{character(len=$\ast$), intent(in), optional}]{ivarname,  }\item[{real(ip\+\_\+double\+\_\+p), dimension(\+:), intent(in), optional}]{rarray,  }\item[{character(len=$\ast$), intent(in), optional}]{rvarname }\end{DoxyParamCaption})}



Writes a real or integer array to a file. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em rstfile} & filename\\
\hline
\mbox{\tt in}  & {\em mpicom} & mpi comm\\
\hline
\mbox{\tt in}  & {\em iarray} & integer data on root\\
\hline
\mbox{\tt in}  & {\em ivarname} & integer variable name on file\\
\hline
\mbox{\tt in}  & {\em rarray} & real data on root\\
\hline
\mbox{\tt in}  & {\em rvarname} & real variable name on file \\
\hline
\end{DoxyParams}


Definition at line 730 of file mod\+\_\+oasis\+\_\+io.\+F90.

\mbox{\Hypertarget{namespacemod__oasis__io_a42b325557a774b08d4cba24f387f8b01}\label{namespacemod__oasis__io_a42b325557a774b08d4cba24f387f8b01}} 
\index{mod\+\_\+oasis\+\_\+io@{mod\+\_\+oasis\+\_\+io}!oasis\+\_\+io\+\_\+write\+\_\+avfbf@{oasis\+\_\+io\+\_\+write\+\_\+avfbf}}
\index{oasis\+\_\+io\+\_\+write\+\_\+avfbf@{oasis\+\_\+io\+\_\+write\+\_\+avfbf}!mod\+\_\+oasis\+\_\+io@{mod\+\_\+oasis\+\_\+io}}
\subsubsection{\texorpdfstring{oasis\+\_\+io\+\_\+write\+\_\+avfbf()}{oasis\_io\_write\_avfbf()}}
{\footnotesize\ttfamily subroutine, public mod\+\_\+oasis\+\_\+io\+::oasis\+\_\+io\+\_\+write\+\_\+avfbf (\begin{DoxyParamCaption}\item[{type(mct\+\_\+avect), intent(in)}]{av,  }\item[{type(mct\+\_\+gsmap), intent(in)}]{gsmap,  }\item[{integer(ip\+\_\+i4\+\_\+p), intent(in)}]{mpicom,  }\item[{integer(ip\+\_\+i4\+\_\+p), intent(in)}]{nx,  }\item[{integer(ip\+\_\+i4\+\_\+p), intent(in)}]{ny,  }\item[{integer(ip\+\_\+i4\+\_\+p), intent(in), optional}]{msec,  }\item[{character(len=$\ast$), intent(in), optional}]{f\+\_\+string,  }\item[{character(len=$\ast$), intent(in), optional}]{filename }\end{DoxyParamCaption})}



Write each field in an attribute vector to an individual files. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em av} & avect\\
\hline
\mbox{\tt in}  & {\em gsmap} & gsmap decomp\\
\hline
\mbox{\tt in}  & {\em mpicom} & mpi comm\\
\hline
\mbox{\tt in}  & {\em nx} & 2d global nx size\\
\hline
\mbox{\tt in}  & {\em ny} & 2d global ny size\\
\hline
\mbox{\tt in}  & {\em msec} & optional time info in seconds\\
\hline
\mbox{\tt in}  & {\em f\+\_\+string} & optional f\+\_\+string to append to filename\\
\hline
\mbox{\tt in}  & {\em filename} & optional output filename \\
\hline
\end{DoxyParams}


Definition at line 877 of file mod\+\_\+oasis\+\_\+io.\+F90.

\mbox{\Hypertarget{namespacemod__oasis__io_ad8a48d6c36e3fac637a8191c20e514f2}\label{namespacemod__oasis__io_ad8a48d6c36e3fac637a8191c20e514f2}} 
\index{mod\+\_\+oasis\+\_\+io@{mod\+\_\+oasis\+\_\+io}!oasis\+\_\+io\+\_\+write\+\_\+avfile@{oasis\+\_\+io\+\_\+write\+\_\+avfile}}
\index{oasis\+\_\+io\+\_\+write\+\_\+avfile@{oasis\+\_\+io\+\_\+write\+\_\+avfile}!mod\+\_\+oasis\+\_\+io@{mod\+\_\+oasis\+\_\+io}}
\subsubsection{\texorpdfstring{oasis\+\_\+io\+\_\+write\+\_\+avfile()}{oasis\_io\_write\_avfile()}}
{\footnotesize\ttfamily subroutine, public mod\+\_\+oasis\+\_\+io\+::oasis\+\_\+io\+\_\+write\+\_\+avfile (\begin{DoxyParamCaption}\item[{character(len=$\ast$), intent(in)}]{rstfile,  }\item[{type(mct\+\_\+avect), intent(in)}]{av,  }\item[{type(mct\+\_\+gsmap), intent(in)}]{gsmap,  }\item[{integer(ip\+\_\+i4\+\_\+p), intent(in)}]{mpicom,  }\item[{integer(ip\+\_\+i4\+\_\+p), intent(in)}]{nx,  }\item[{integer(ip\+\_\+i4\+\_\+p), intent(in)}]{ny,  }\item[{character(len=$\ast$), intent(in), optional}]{nampre }\end{DoxyParamCaption})}



Writes all fields from an attribute vector to a file. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em rstfile} & filename\\
\hline
\mbox{\tt in}  & {\em av} & avect\\
\hline
\mbox{\tt in}  & {\em gsmap} & gsmap decomp\\
\hline
\mbox{\tt in}  & {\em mpicom} & mpi comm\\
\hline
\mbox{\tt in}  & {\em nx} & 2d global nx size\\
\hline
\mbox{\tt in}  & {\em ny} & 2d global ny size\\
\hline
\mbox{\tt in}  & {\em nampre} & field name prepend string on file \\
\hline
\end{DoxyParams}


Definition at line 230 of file mod\+\_\+oasis\+\_\+io.\+F90.

