newly added dump_header, which dumps the header information of a muSR data file. Furthermore some minor cleanup took place.

This commit is contained in:
2012-05-12 14:08:27 +00:00
parent f04dd5a283
commit 1d6f8082f0
14 changed files with 736 additions and 225 deletions

View File

@@ -10,7 +10,7 @@
***************************************************************************/
/***************************************************************************
* Copyright (C) 2007 by Andreas Suter *
* Copyright (C) 2007-2012 by Andreas Suter *
* andreas.suter@psi.ch *
* *
* This program is free software; you can redistribute it and/or modify *
@@ -29,6 +29,10 @@
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <cstdio>
#include <cstdlib>
//#include <string.h>
@@ -395,9 +399,12 @@ int main(int argc, char *argv[])
if (argc == 2) {
if (!strcmp(argv[1], "--version")) {
cout << endl << "musrfit version: " << PMUSR_VERSION << " / $Id$";
cout << endl << endl;
return PMUSR_SUCCESS;
#ifdef HAVE_CONFIG_H
cout << endl << "musrfit version: " << PACKAGE_VERSION << ", $Id$" << endl << endl;
#else
cout << endl << "musrfit version: $Id$" << endl << endl;
#endif
return PMUSR_SUCCESS;
}
if (!strcmp(argv[1], "--help")) {