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/LIBND0.f | |
Initial commit from Polytechnique Montreal
Diffstat (limited to 'Dragon/src/LIBND0.f')
| -rw-r--r-- | Dragon/src/LIBND0.f | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/Dragon/src/LIBND0.f b/Dragon/src/LIBND0.f new file mode 100644 index 0000000..2a2ccf9 --- /dev/null +++ b/Dragon/src/LIBND0.f @@ -0,0 +1,55 @@ +*DECK LIBND0 + SUBROUTINE LIBND0 (NAMFIL,NGRO,IPENER) +* +*----------------------------------------------------------------------- +* +*Purpose: +* Recover energy group information from a NDAS library. +* +*Copyright: +* Copyright (C) 2006 Ecole Polytechnique de Montreal +* +*Author(s): A. Hebert +* +*Parameters: input +* NAMFIL name of the NDAS file. +* +*Parameters: output +* NGRO number of energy groups. +* IPENER pointer of the energy mesh limit array. +* +*Reference: +* Copyright (C) from NDAS Atomic Energy of Canada Limited utility (2006) +* +*----------------------------------------------------------------------- +* + USE GANLIB + USE FSDF + IMPLICIT NONE +*---- +* Subroutine arguments +*---- + INTEGER NGRO + CHARACTER NAMFIL*(*) + TYPE(C_PTR) IPENER +*---- +* Local variables +*---- + INTEGER IERR,HEADER(16) + REAL, POINTER, DIMENSION(:) :: ENERG +* + CALL XSDOPN(NAMFIL,IERR) + IF(IERR.NE.0) CALL XABORT('LIBND0: XSDOPN could not open Library' + > //' files') + CALL XSDBLD(6001,HEADER,IERR) + IF(IERR.NE.0) CALL XABORT('LIBND0: XSDBLD could not read library' + > //' parameters') + NGRO=HEADER(2) + IPENER=LCMARA(NGRO+1) + CALL C_F_POINTER(IPENER,ENERG,(/ NGRO+1 /)) + CALL XSDBLD(5019,ENERG,IERR) + IF(IERR.NE.0) CALL XABORT('LIBND0: XSDBLD could not read energy ' + > //'group limits') + CALL XSDCL() + RETURN + END |
