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 /Dragon/src/LIBENI.f | |
Initial commit from Polytechnique Montreal
Diffstat (limited to 'Dragon/src/LIBENI.f')
| -rw-r--r-- | Dragon/src/LIBENI.f | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/Dragon/src/LIBENI.f b/Dragon/src/LIBENI.f new file mode 100644 index 0000000..19867c1 --- /dev/null +++ b/Dragon/src/LIBENI.f @@ -0,0 +1,62 @@ +*DECK LIBENI + SUBROUTINE LIBENI(CFILNA,NEL) +* +*----------------------------------------------------------------------- +* +*Purpose: +* Initialize dimensions for depletion data for WIMS-D4 format library. +* +*Copyright: +* Copyright (C) 1997 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): G. Marleau. +* +*Parameters: input +* CFILNA WIMS file name. +* +*Parameters: output +* NEL number of isotopes on library. +* +*----------------------------------------------------------------------- +* + IMPLICIT NONE +*---- +* PARAMETERS +*---- + INTEGER LRIND,IACTO,IACTC,IUTYPE,LPZ + PARAMETER (LRIND=0,IACTO=2,IACTC=1,IUTYPE=2,LPZ=8) +*---- +* EXTERNAL FUNCTIONS +*---- + INTEGER KDRCLS,KDROPN +*---- +* LOCAL VARIABLES +*----- + INTEGER NEL,IUNIT,II,IERR + CHARACTER CFILNA*8 +*---- +* WIMS-D4 LIBRARY PARAMETERS +*---- + INTEGER NPZ(LPZ) +*---- +* OPEN WIMS-D4 LIBRARY +* READ GENERAL DIMENSIONING +*---- + IUNIT=KDROPN(CFILNA,IACTO,IUTYPE,LRIND) + IF(IUNIT.LE.0) CALL XABORT('LIBENI: WIMS-D4 LIBRARY '// + > CFILNA//' CANNOT BE OPENED FOR DEPLETION') + READ(IUNIT) (NPZ(II),II=1,LPZ) + NEL=NPZ(1) + IERR=KDRCLS(IUNIT,IACTC) + IF(IERR.LT.0) + > CALL XABORT('LIBENI: WIMS-D4 LIBRARY '// + > CFILNA//' CANNOT BE CLOSED') +*---- +* RETURN +*---- + RETURN + END |
