Changeset ef87ee for pcp/src/pcp.c


Ignore:
Timestamp:
Dec 16, 2009, 11:47:47 AM (16 years ago)
Author:
Frederik Heber <heber@…>
Children:
35f733, 59b9dd
Parents:
02911f
Message:

Added versioning to each executable.

  • credits to Ralf Wildenhues for writing the Makefile.am code
  • version.c section added to Makefile.am (pcp, molecuilder and util)
  • src/version.h to each pcp, molecuilder and util
  • each of the executables includes version.h and prints version in main()

Signed-off-by: Frederik Heber <heber@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pcp/src/pcp.c

    r02911f ref87ee  
    526526#include<stdio.h>
    527527#include<math.h>
    528 #include"mpi.h"
    529 #include"data.h"
    530 #include"errors.h"
    531 #include"helpers.h"
    532 #include"init.h"
    533 #include"pcp.h"
    534 #include"opt.h"
    535 #include"myfft.h"
    536 #include"gramsch.h"
    537 #include"output.h"
     528
     529#include "data.h"
     530#include "errors.h"
     531#include "gramsch.h"
     532#include "helpers.h"
     533#include "init.h"
     534#include "pcp.h"
     535#include "myfft.h"
     536#include "opt.h"
     537#include "output.h"
    538538#include "run.h"
    539539#include "pcp.h"
     540#include "version.h"
    540541
    541542#define MYSTOPSIGNAL SIGALRM    //!< external signal which gracefully stops calculations
     
    810811*/
    811812int main(int argc, char **argv) {
     813
     814  fprintf(stdout, "%s\n", ESPACKVersion);
     815
    812816  MPI_Init(&argc, &argv);
    813817  Run(argc, argv);
Note: See TracChangeset for help on using the changeset viewer.