File: test_multutils.cc

package info (click to toggle)
rumba-utils 1.0.1-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,764 kB
  • ctags: 414
  • sloc: sh: 7,541; cpp: 6,037; makefile: 1,127; xml: 605; perl: 70
file content (22 lines) | stat: -rw-r--r-- 466 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <string>
#include <iostream>
#include <rumba/matrixio.h>
#include "multutils.h"

using namespace RUMBA;

int main(int argc, char** argv)
{
	if ( argc < 3 )
		std::cerr << "must provide an input file and an output file" 
			<< std::endl;
	std::string infile = argv[1];
	std::string outfile = argv[2];
		
	RUMBA::ManifoldFile* f = ManifoldFile::construct (infile.c_str());

	ManifoldMatrix M(r_t_r(f));

	writeManifoldMatrix (M,outfile.c_str());
	return 0;
}