FrontISTR
5.9.0
Large-scale structural analysis program with finit element method
mem_util.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 <stdio.h>
7
#include <stdlib.h>
8
#include "
hecmw_config.h
"
9
#include "
separator.h
"
10
void
separator_memory_exit
(
char
*var) {
11
fprintf(stderr,
12
"#### HPC-MW-VIS-E0001:There is no enough memory allocated for "
13
"variable %s\n"
,
14
var);
15
/* MPI_Finalize(); */
16
exit(
HECMW_EXIT_INTERNAL
);
17
}
18
19
void
separator_print_exit
(
char
*var) {
20
fprintf(stderr,
"%s\n"
, var);
21
/* MPI_Finalize(); */
22
exit(
HECMW_EXIT_INTERNAL
);
23
}
hecmw_config.h
HECMW_EXIT_INTERNAL
#define HECMW_EXIT_INTERNAL
Definition:
hecmw_config.h:77
separator_print_exit
void separator_print_exit(char *var)
Definition:
mem_util.c:19
separator_memory_exit
void separator_memory_exit(char *var)
Definition:
mem_util.c:10
separator.h
hecmw1
src
solver
solver_direct_parallel
mem_util.c
Generated by
1.9.1