1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML3.2 EN">
<HTML>
<HEAD> <link rel="canonical" href="http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/DM/VecLoadExodusCell.html" />
<META NAME="GENERATOR" CONTENT="DOCTEXT">
<TITLE>VecLoadExodusCell</TITLE>
</HEAD>
<BODY BGCOLOR="FFFFFF">
<div id="version" align=right><b>petsc-3.4.2 2013-07-02</b></div>
<A NAME="VecLoadExodusCell"><H1>VecLoadExodusCell</H1></A>
Read a <A HREF="../Vec/Vec.html#Vec">Vec</A> representing the values of a field at all cells from an exodusII file.
<H3><FONT COLOR="#CC3333">Synopsis</FONT></H3>
<PRE>
#include "petscdmmesh.h"
PetscErrorCode VecLoadExodusCell(DM dm,Vec v,MPI_Comm comm,PetscInt exoid,PetscInt step,PetscInt exofield)
</PRE>
<H3><FONT COLOR="#CC3333">Input Parameters</FONT></H3>
<TABLE border="0" cellpadding="0" cellspacing="0">
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>dm </B></TD><TD>- the DMMesh representing the mesh
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>v </B></TD><TD>- the LOCAL vector of values to be read (i.e. with ghost values) obtained with <A HREF="../DM/SectionRealCreateLocalVector.html#SectionRealCreateLocalVector">SectionRealCreateLocalVector</A>.
if v represents a field with several components, the block size must be set accordingly using <A HREF="../Vec/VecSetBlockSize.html#VecSetBlockSize">VecSetBlockSize</A>().
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>comm </B></TD><TD>- the communicator associated to the exo file
+ if size(comm) == 1 each processor writes its local vector into a separate file
. if size(comm) > 1, the values are sent to cpu 0, and written in a single file
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>exoid </B></TD><TD>- the id of the exodusII file (obtained with ex_open or ex_create)
</TD></TR></TABLE>
<DT><B>step </B> -the time step to write
<br>
<DT><B>exofield </B> -the position in the exodus field of the first component
<br>
<P>
<DT><B>Interpolated meshes are not supported.</B> -
<br>
</TABLE>
<P>
<H3><FONT COLOR="#CC3333">Keywords</FONT></H3>
mesh,ExodusII
<BR>
<H3><FONT COLOR="#CC3333">See Also</FONT></H3>
MeshCreate() MeshCreateExodus() <A HREF="../DM/SectionRealCreateLocalVector.html#SectionRealCreateLocalVector">SectionRealCreateLocalVector</A>() <A HREF="../DM/VecViewExodusCell.html#VecViewExodusCell">VecViewExodusCell</A>()
<BR><A HREF="../DM/VecViewExodusVertexSet.html#VecViewExodusVertexSet">VecViewExodusVertexSet</A>() <A HREF="../DM/VecLoadExodusVertexSet.html#VecLoadExodusVertexSet">VecLoadExodusVertexSet</A>() <A HREF="../DM/VecViewExodusCellSet.html#VecViewExodusCellSet">VecViewExodusCellSet</A>() <A HREF="../DM/VecLoadExodusCellSet.html#VecLoadExodusCellSet">VecLoadExodusCellSet</A>()
<A HREF="../DM/VecViewExodusVertex.html#VecViewExodusVertex">VecViewExodusVertex</A>() <A HREF="../DM/VecLoadExodusVertex.html#VecLoadExodusVertex">VecLoadExodusVertex</A>()
<P>
<P><B><P><B><FONT COLOR="#CC3333">Level:</FONT></B>beginner
<BR><FONT COLOR="#CC3333">Location:</FONT></B><A HREF="../../../src/dm/impls/mesh/meshexodus.c.html#VecLoadExodusCell">src/dm/impls/mesh/meshexodus.c</A>
<BR><A HREF="./index.html">Index of all DM routines</A>
<BR><A HREF="../../index.html">Table of Contents for all manual pages</A>
<BR><A HREF="../singleindex.html">Index of all manual pages</A>
</BODY></HTML>
|