File: shareddt.c

package info (click to toggle)
emoslib 2%3A4.4.5-2
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 359,232 kB
  • ctags: 13,125
  • sloc: fortran: 93,166; ansic: 27,958; sh: 7,500; f90: 5,209; perl: 604; cpp: 305; makefile: 78; python: 53
file content (38 lines) | stat: -rw-r--r-- 909 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/**
* Copyright 1981-2016 ECMWF.
*
* This software is licensed under the terms of the Apache Licence
* Version 2.0 which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
*
* In applying this licence, ECMWF does not waive the privileges and immunities
* granted to it by virtue of its status as an intergovernmental organisation
* nor does it submit to any jurisdiction.
*/

#include "sharedlib.h"
#include "common/fortint.h"
#include "common/JPointer.h"

#ifdef FORTRAN_NO_UNDERSCORE
#define SHAREDDT shareddt
#else
#define SHAREDDT shareddt_
#endif

fortint SHAREDDT(
  JPointer* ipdum)
/*
C
C**** SHAREDDT
C     Provides Fortran wrapper to the shmdt call via release_shared_file
C
C     IPDUM   - Dummy array for mapping legendre function file
C     KRET    - Return status, 0 = OK.
t
*/
{
  fortint kret =0;
  int ret = release_shared_file(*ipdum) ;
  kret = (fortint) ret ;
  return kret;
}