https://github.com/geodynamics/citcoms
Revision 85faa25c3671bc115872ef36dfd541c1cf425362 authored by Rajesh Kommu on 26 June 2014, 04:12:12 UTC, committed by Rajesh Kommu on 26 June 2014, 04:12:12 UTC
1 parent a2cf0e8
Raw File
Tip revision: 85faa25c3671bc115872ef36dfd541c1cf425362 authored by Rajesh Kommu on 26 June 2014, 04:12:12 UTC
Updated Cookbook 1 in the CitcomS manual to the pure C version
Tip revision: 85faa25
Py2CMain.cpp
#include "Py2C.hpp"

int main(int argc, char* argv[])
{
  if( argc != 4)
  {
    std::cerr << "Usage: Py2C infile outfile true|false" << std::endl;
    exit(-1);
  }

  Py2CConverter py2c(argv[1], argv[2]);

  bool save_all = (std::string(argv[3])=="true"?true:false);
  py2c.convert(save_all);
}
back to top