source: CPL/oasis3-mct/branches/OASIS3-MCT_5.0_branch/lib/cbindings/fortran_isoc/mod_oasis_sys_iso.F90 @ 6331

Last change on this file since 6331 was 6331, checked in by aclsce, 17 months ago

Moved oasis-mct_5.0 in oasis3-mct/branches directory.

File size: 1.6 KB
Line 
1! pyOASIS - A Python wrapper for OASIS
2! Authors: Philippe Gambron, Rupert Ford
3! Copyright (C) 2019 UKRI - STFC
4
5! This program is free software: you can redistribute it and/or modify
6! it under the terms of the GNU Lesser General Public License as
7! published by the Free Software Foundation, either version 3 of the
8! License, or any later version.
9
10! This program is distributed in the hope that it will be useful,
11! but WITHOUT ANY WARRANTY; without even the implied warranty of
12! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13! GNU Lesser General Public License for more details.
14
15! A copy of the GNU Lesser General Public License, version 3, is supplied
16! with this program, in the file lgpl-3.0.txt. It is also available at
17! <https://www.gnu.org/licenses/lgpl-3.0.html>.
18
19
20subroutine oasis_abort_iso(id_compid, cd_routine, cd_message, file, line, rcode) bind(C)
21  use iso_c_binding, only: c_int, c_ptr
22  use cbindings
23  use mod_oasis
24  implicit none
25  integer(kind=c_int), intent(in) :: id_compid
26  type(c_ptr), intent(in) :: cd_routine
27  type(c_ptr), intent(in) :: cd_message
28  type(c_ptr), intent(in) :: file
29  integer(kind=c_int), intent(in) :: line
30  integer(kind=c_int), intent(in) :: rcode
31
32  integer :: id_compid_f
33  character(len=:), allocatable :: cd_routine_f, cd_message_f, file_f
34  integer :: line_f, rcode_f
35
36  id_compid_f=id_compid
37  call foasis_string_to_fortran(cd_routine, cd_routine_f)
38  call foasis_string_to_fortran(cd_message, cd_message_f)
39  call foasis_string_to_fortran(file, file_f)
40  line_f=line
41  rcode_f=rcode
42
43  call oasis_abort(id_compid_f, cd_routine_f, cd_message_f, file_f, line_f, rcode_f)
44end subroutine oasis_abort_iso
Note: See TracBrowser for help on using the repository browser.