OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
spmd_kill.F
Go to the documentation of this file.
1Copyright> OpenRadioss
2Copyright> Copyright (C) 1986-2025 Altair Engineering Inc.
3Copyright>
4Copyright> This program is free software: you can redistribute it and/or modify
5Copyright> it under the terms of the GNU Affero General Public License as published by
6Copyright> the Free Software Foundation, either version 3 of the License, or
7Copyright> (at your option) any later version.
8Copyright>
9Copyright> This program is distributed in the hope that it will be useful,
10Copyright> but WITHOUT ANY WARRANTY; without even the implied warranty of
11Copyright> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12Copyright> GNU Affero General Public License for more details.
13Copyright>
14Copyright> You should have received a copy of the GNU Affero General Public License
15Copyright> along with this program. If not, see <https://www.gnu.org/licenses/>.
16Copyright>
17Copyright>
18Copyright> Commercial Alternative: Altair Radioss Software
19Copyright>
20Copyright> As an alternative to this open-source version, Altair also offers Altair Radioss
21Copyright> software under a commercial license. Contact Altair to discuss further if the
22Copyright> commercial version may interest you: https://www.altair.com/radioss/.
23#ifdef MPI
24
25!||====================================================================
26!|| spmd_kill ../engine/source/mpi/init/spmd_kill.F
27!||--- called by ------------------------------------------------------
28!|| arret ../engine/source/system/arret.F
29!||--- calls -----------------------------------------------------
30!|| my_exit ../engine/source/system/my_exit.c
31!||--- uses -----------------------------------------------------
32!|| spmd_comm_world_mod ../engine/source/mpi/spmd_comm_world.F90
33!||====================================================================
34 SUBROUTINE spmd_kill(ICODE)
35C-----------------------------------------------
36C I m p l i c i t T y p e s
37C-----------------------------------------------
38 USE spmd_comm_world_mod, ONLY : spmd_comm_world
39#include "implicit_f.inc"
40C-----------------------------------------------------------------
41C M e s s a g e P a s s i n g
42C-----------------------------------------------
43#include "spmd.inc"
44C-----------------------------------------------
45C D u m m y A r g u m e n t s
46C-----------------------------------------------
47 INTEGER ICODE
48C-----------------------------------------------
49C L o c a l V a r i a b l e s
50C-----------------------------------------------
51 INTEGER INFO,LOC_PROC,I,IERROR
52C-----------------------------------------------
53C S o u r c e L i n e s
54C-----------------------------------------------
55 CALL mpi_abort(spmd_comm_world,icode,ierror)
56 CALL my_exit(icode)
57
58 RETURN
59 END
60
61#elif 1
62C
63!||====================================================================
64!|| spmd_kill ../engine/source/mpi/init/spmd_kill.F
65!||--- called by ------------------------------------------------------
66!|| arret ../engine/source/system/arret.F
67!||--- calls -----------------------------------------------------
68!|| my_exit ../engine/source/system/my_exit.c
69!||--- uses -----------------------------------------------------
70!|| spmd_comm_world_mod ../engine/source/mpi/spmd_comm_world.F90
71!||====================================================================
72 SUBROUTINE spmd_kill(ICODE)
73C-----------------------------------------------
74C I m p l i c i t T y p e s
75C-----------------------------------------------
76 USE spmd_comm_world_mod, ONLY : spmd_comm_world
77#include "implicit_f.inc"
78C-----------------------------------------------
79C D u m m y A r g u m e n t s
80C-----------------------------------------------
81 INTEGER ICODE
82C-----------------------------------------------
83C S o u r c e L i n e s
84C-----------------------------------------------
85 CALL my_exit(icode)
86 END
87
88
89#endif
90
91
void my_exit(int *i)
Definition analyse.c:1038
subroutine mpi_abort(comm, ierrcode, ierr)
Definition mpi.f:153
subroutine spmd_kill(icode)
Definition spmd_kill.F:73