FrontISTR  5.7.0
Large-scale structural analysis program with finit element method
hecmw_finalize.c
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2019 FrontISTR Commons
3  * This software is released under the MIT License, see LICENSE.txt
4  *****************************************************************************/
5 
6 #include "hecmw_finalize.h"
7 #include "hecmw_util.h"
8 
9 int HECMW_finalize(void) {
10  HECMW_log(HECMW_LOG_DEBUG, "Finalizing...");
11 
13 
14 #ifndef HECMW_SERIAL
15  MPI_Finalize();
16 
17  HECMW_log(HECMW_LOG_DEBUG, "MPI finalized");
18 #endif
19 
20  return 0;
21 }
HECMW_ctrl_finalize
int HECMW_ctrl_finalize(void)
Definition: hecmw_control.c:2056
HECMW_LOG_DEBUG
#define HECMW_LOG_DEBUG
Definition: hecmw_log.h:21
HECMW_log
int HECMW_log(int loglv, const char *fmt,...)
Definition: hecmw_log.c:260
HECMW_finalize
int HECMW_finalize(void)
Definition: hecmw_finalize.c:9
hecmw_finalize.h
hecmw_util.h