Commit f7aa4545 authored by jclamber's avatar jclamber

road to release 1.0.0

git-svn-id: http://svn.oamp.fr/repos/unsio/trunk@195 ce2cc22f-6084-46ce-a062-084b172ee5dc
parent 371d6538
......@@ -31,11 +31,15 @@ namespace uns {
// static variable to store DATA string
std::map<std::string, StringData> CunsOut::s_mapStringValues;
std::map<std::string, int> CunsIn::s_mapCompInt;
// ----------------------------------------------------------------------------
// READING OPERATIONS
CunsIn::CunsIn(const std::string _name ,const std::string _comp ,const std::string _time, const bool verb)
{
init(_name,_comp,_time,verb);
if (verbose) {
std::cerr << "CunsIn::CunsIn -- UNSIO version = "<<uns::getVersion()<< "\n";
}
}
// ----------------------------------------------------------------------------
......@@ -259,6 +263,9 @@ CunsOut::CunsOut(const std::string _name, const std::string _type, const bool _v
simtype = tools::Ctools::fixFortran(_type.c_str(),false);
verbose = _verb;
snapshot= NULL;
if (verbose) {
std::cerr << "CunsOut::CunsOut -- UNSIO version = "<<uns::getVersion()<< "\n";
}
initializeStringMap(verbose);
simtype = tools::Ctools::tolower(simtype);
if (simtype == "gadget2") {
......
......@@ -21,8 +21,12 @@
#include <map>
namespace uns {
const std::string VERSION="1.0.0";
enum StringData {
const std::string VERSION="1.0.0"; // UNSIO version
inline std::string getVersion() { return uns::VERSION; }
enum StringData {
// data
Time ,
Redshift ,
......
......@@ -191,10 +191,6 @@ int main(int argc, char ** argv )
int maxlines = getiparam((char *) "maxline" );
char * select_t = getparam ((char *) "times" );
bool verbose = getbparam((char *) "verbose" );
if (verbose) {
std::cerr << "UNSIO version ="<<uns::VERSION<< "\n";
}
// -----------------------------------------------
// instantiate a new UNS input object (for reading)
......
Markdown is supported
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