FLASH4.5 API

Generated from /asc/asci2/site/flashcode/secure/release_4p5/source/Driver/Driver_abortFlashC.c with ROBODoc v4.99.8 on Tue Mar 05 16:16:18 2019

TABLE OF CONTENTS


[Functions] source/Driver/Driver_abortFlashC

[top][index]

NAME

  Driver_abortFlashC

SYNOPSIS

  Driver_abortFlashC(char* :: errorMessage)

DESCRIPTION

  C specific function that writes an error message 
  to the logfile and aborts FLASH.
  Attempts to shut down all processes (using MPI_Abort()).
  
  Use this function to abort the FLASH code from a C routine

ARGUMENTS

  errorMessage:     A string to write to the logfile (presumably 
                    indicating what went wrong).

NOTES

  for those familiar with FLASH2, we added this function to make it
  easier to compile FLASH across different compilers.  It is possible
  to call fortran90 routines from C functions, however an interface
  is needed and some complications were found on various compilers.
  Often users had to remove all the calls to abort_flash in the io 
  C routines in order to get FLASH2 to run.