test.cpp 826 Bytes
Newer Older
Ken Leiter (Civ's avatar
Ken Leiter (Civ committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
/*
 * test.cc
 *
 *  Created on: Jan 29, 2010
 *      Author: kleiter
 */

#include "XdmfGrid.hpp"
#include "XdmfGeometry.hpp"
#include "XdmfTopology.hpp"

#include <iostream>

int main(int argc, char* argv[])
{
	boost::shared_ptr<XdmfGrid> grid = XdmfGrid::New();
	std::cout << *grid << std::endl;

	boost::shared_ptr<XdmfObject> obj = XdmfGrid::New();
	std::cout << *obj << std::endl;

	boost::shared_ptr<XdmfTopology> top = XdmfTopology::New();
	std::cout << *top << std::endl;
24 25 26 27
	std::cout << top->getTopologyTypeAsString() << std::endl;
	top->setTopologyType(XdmfTopologyType::Hexahedron);
	std::cout << top->getTopologyTypeAsString() << std::endl;

28
	if (top->getTopologyType() != XdmfTopologyType::Polygon)
29 30 31
	{
		top->setTopologyType(XdmfTopologyType::Polygon);
	}
32
	std::cout << top->getTopologyType().name << std::endl;
Ken Leiter (Civ's avatar
Ken Leiter (Civ committed
33
}