Commit 1183323f authored by Jerry Clarke's avatar Jerry Clarke
Browse files

Accept TimeType="Function"

parent ed8c7868
......@@ -30,11 +30,13 @@
/*! XdmfDomain represents the Domain Element in
Xdmf. In XML it is the Element :
\verbatim
<Domain Name="DomainName">
The Xdmf element may have Information and DataItem Elements as children
XML Element : Domain
XML Attribute : Name = Any String
\endverbatim
*/
class XDMF_EXPORT XdmfDomain : public XdmfElement {
......
......@@ -445,6 +445,7 @@ INPUT = \
XdmfHeavyData.h \
XdmfHDF.h \
XdmfH5Driver.h \
XdmfTime.h \
XdmfValues.h \
XdmfValuesXML.h \
XdmfValuesHDF.h \
......
......@@ -107,8 +107,6 @@ class XdmfAttribute;
XML Attribute : GridType = Uniform* | Collection | Tree | Subset
XML Attribute : Section = DataItem* | All (Only Meaningful if GridType="Subset")
\endverbatim
\endverbatim
Typical API usage might look like :
......
......@@ -74,10 +74,12 @@ XdmfInt32 XdmfTime::UpdateInformation(){
// Default
this->TimeType = XDMF_TIME_SINGLE;
}
// Type == Function ?
attribute = this->Get("Function");
if(attribute){
this->TimeType = XDMF_TIME_FUNCTION;
this->SetFunction(attribute);
return(XDMF_SUCCESS);
}
attribute = this->Get("Value");
if(attribute){
......
......@@ -25,12 +25,10 @@
#ifndef __XdmfTime_h
#define __XdmfTime_h
#include "XdmfElement.h"
//! Define time for Grid
/*! XdmfTime represents a Time specification.
Time is a child of the <Grid> element :
\verbatim
<Time TypeType="Single* | Uniform | HyperSlab | Function"
NumberOfIterations="1* | N"
Value="(no default)">
......@@ -41,8 +39,11 @@ Time is a child of the <Grid> element :
Uniform - a Time Series
HyperSlab - Start Stride Count
Function - XdmfFloat64 *Function(GridIndex)
\endverbatim
*/
#include "XdmfElement.h"
class XdmfDataItem;
class XdmfArray;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment