NAME
failonerror - Prints error message and terminates program
SYNOPSIS
#include "lpj.h"
void failonerror(const Config *config,int rc,int errcode,const char *msg);
DESCRIPTION
Function writes out error message and terminates program.
The parallel version checks the return code on all tasks and
prints error message only on task zero. The arguments of
failonerror are:
config
LPJmL configuration data. Must be initialized by
initmpiconfig() or initconfig().
rc Return code of last function call. Program will be
terminated if value on any task is greater than zero.
errcode
Value returned from main program.
msg Error message printed on error stream.
RETURN VALUE
None.
AUTHORS
For authors and contributors see AUTHORS file
COPYRIGHT
(C) Potsdam Institute for Climate Impact Research (PIK), see
COPYRIGHT file
SEE ALSO
initconfig(3), initmpiconfig(3)
Man(1) output converted with
man2html