#ifndef init_h #define init_h /** \file init.h * Header file for \ref init.c * * Contains declarations of the functions implemented in \ref init.c, * enumeration value_type which is needed for ParseForParameters() and * one inline function tpow() realising a "x to the power of n" where n * may be also arbitrary (also negative) integer. * Project: ParallelCarParrinello \authors Jan Hamaekers, Frederik Heber \date 2000, 2006 File: init.h $Id: init.h,v 1.17 2007/02/09 09:13:48 foo Exp $ */ #ifdef HAVE_CONFIG_H #include #endif /* Bereite mainname vor: loescht von filename von rechts nach links bis zu erstem "/" oder ganz */ void CreateMainname(struct Problem *const P, const char* const filename); /* Einlesen der Parameterdatei */ int ParseForParameter(int verbose, FILE *file, const char *const name, int sequential, int const xth, int const yth, enum value_type type, void *value, int repetition, enum necessity critical); void ReadParameters(struct Problem *const P, const char *const filename); void WriteParameters(struct Problem *const P, const char *const filename); void Init(struct Problem *const P); void InitPerturbation(struct Problem *P); void InitPsisValue(struct Problem *const P, int start, int end); #endif