!----- LGPL -------------------------------------------------------------------- ! ! Copyright (C) Stichting Deltares, 2011-2014. ! ! 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 version 2.1. ! ! This library is distributed in the hope that it will be useful, ! but WITHOUT ANY WARRANTY; without even the implied warranty of ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ! Lesser General Public License for more details. ! ! You should have received a copy of the GNU Lesser General Public ! License along with this library; if not, see . ! ! contact: delft3d.support@deltares.nl ! Stichting Deltares ! P.O. Box 177 ! 2600 MH Delft, The Netherlands ! ! All indications and logos of, and references to, "Delft3D" and "Deltares" ! are registered trademarks of Stichting Deltares, and remain the property of ! Stichting Deltares. All rights reserved. ! !------------------------------------------------------------------------------- ! $Id$ ! $HeadURL$ !------------------------------------------------------------------------------- ! Delft3D - Stubs for legacy C routines ! ! Irv.Elshoff@deltares.nl ! Adri.Mourits@deltares.nl ! 07 jun 05 ! !------------------------------------------------------------------------------- ! subroutine get_versionstring (versionstring) use deltares_common_version_module implicit none character(*) :: versionstring call getfullversionstring_deltares_common(versionstring) end subroutine get_versionstring subroutine cgetcp (cpu) implicit none double precision, intent (out) :: cpu call cutil_cgetcp (cpu) end subroutine cdate (date) implicit none character(len=*), intent (out) :: date call cutil_cdate (date) end subroutine cstop (exit_code, message) implicit none integer , intent (in) :: exit_code character(len=*), intent (in) :: message call cutil_cstop (exit_code, message) end ! ! Use the name "util_getenv" instead of "getenv". ! The last one conflicts with standard libraries on Windows ! subroutine util_getenv (name, value) implicit none character(*), intent (in) :: name character(*), intent (out) :: value call cutil_getenv (name, len(name), value, len(value)) end subroutine gethw (error, pathp, pathd, alone, fpathp, fpathd) implicit none logical, intent(out) :: error character(*), intent(out) :: pathp character(*), intent(out) :: pathd logical, intent(in) :: alone character(*), intent(out) :: fpathp character(*), intent(out) :: fpathd ! ! Routine to determine the location of D3D program and data files based ! on the values of the D3D_HOME, MOR_PATH and ARCH environment variables. ! The actual work is done by a C routine because it's very string oriented. ! integer :: aloneint integer :: result ! ! body ! result = 1 if (alone) then aloneint = 1 else aloneint = 0 endif call cutil_gethw ( & pathp, len (pathp), & pathd, len (pathd), & aloneint, & fpathp, len (fpathp), & fpathd, len (fpathd), & result & ) if (result == 0) then error = .false. else error = .true. endif end subroutine getmp (error, pathd) implicit none logical, intent(out) :: error character(*), intent(out) :: pathd ! ! Routine to determine the location of D3D program and data files based ! on the values of the D3D_HOME, MOR_PATH and ARCH environment variables. ! The actual work is done by a C routine because it's very string oriented. ! integer :: result ! ! body ! result = 1 call cutil_getmp (pathd, len (pathd), result) if (result == 0) then error = .false. else error = .true. endif end ! ! Use the name "util_system" instead of "system". ! The last one conflicts with standard libraries on Windows ! subroutine util_system (command) implicit none character(*), intent (in) :: command call cutil_system (command, len(command)) end