diff options
| author | stainer_t <thomas.stainer@oecd-nea.org> | 2025-09-08 13:48:49 +0200 |
|---|---|---|
| committer | stainer_t <thomas.stainer@oecd-nea.org> | 2025-09-08 13:48:49 +0200 |
| commit | 7dfcc480ba1e19bd3232349fc733caef94034292 (patch) | |
| tree | 03ee104eb8846d5cc1a981d267687a729185d3f3 /Ganlib/src/KDRMEM.f90 | |
Initial commit from Polytechnique Montreal
Diffstat (limited to 'Ganlib/src/KDRMEM.f90')
| -rw-r--r-- | Ganlib/src/KDRMEM.f90 | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/Ganlib/src/KDRMEM.f90 b/Ganlib/src/KDRMEM.f90 new file mode 100644 index 0000000..b07d984 --- /dev/null +++ b/Ganlib/src/KDRMEM.f90 @@ -0,0 +1,31 @@ +! +!----------------------------------------------------------------------- +! +!Purpose: +! recover user memory used +! +!Copyright: +! Copyright (C) 2019 Ecole Polytechnique de Montreal +! This library is free software; you can redistribute it and/or +! modify it under the terms of the GNU Lesser General Public +! License as published by the Free Software Foundation; either +! version 2.1 of the License, or (at your option) any later version. +! +!Author(s): A. Hebert +! +!Parameters: output +! utime allocated memory in bytes. +! +!----------------------------------------------------------------------- +! +subroutine KDRMEM(utime) + use, intrinsic :: iso_c_binding + double precision :: utime + interface + function getusage () bind(c) + use, intrinsic :: iso_c_binding + real(c_double) :: getusage + end function getusage + end interface + utime=getusage() +end subroutine KDRMEM |
