-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdataObject.cpp
41 lines (37 loc) · 1.08 KB
/
dataObject.cpp
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
/******************************************************************************
* GRIDGEN: Grid Generating Compiler
* By: Andy Stone ([email protected])
* (C) Copyright 2011 Colorado State University
*****************************************************************************/
#include "dataObject.hpp"
#include <iostream>
#include <stdlib.h>
using namespace std;
void DataObject::print(ostream &out) const {
out << "DataObject " << mName << " {" << endl;
out << " grid = ";
if(mGrid == NULL) {
out << "NULL";
} else {
mGrid->printSimp(out);
}
out << endl;
out << " schedule = ";
if(mSchedule == NULL) {
out << "NULL";
} else {
mSchedule->printSimp(out);
}
out << endl;
out << " distribution = ";
if(mDistribution == NULL) {
out << "NULL";
} else {
mDistribution->printSimp(out);
}
out << endl;
out << "}" << endl;
}
void DataObject::printSimp(ostream &out) const {
out << mName;
}