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/LIBWID.f | |
Initial commit from Polytechnique Montreal
Diffstat (limited to 'Dragon/src/LIBWID.f')
| -rw-r--r-- | Dragon/src/LIBWID.f | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/Dragon/src/LIBWID.f b/Dragon/src/LIBWID.f new file mode 100644 index 0000000..04e9b30 --- /dev/null +++ b/Dragon/src/LIBWID.f @@ -0,0 +1,51 @@ +*DECK LIBWID + FUNCTION LIBWID(NEL,IWISO,ISOID) +* +*----------------------------------------------------------------------- +* +*Purpose: +* Find isotope number associated with isotope id on WIMS-NEA and +* WIMS-AECL library. +* +*Copyright: +* Copyright (C) 2002 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 +* NEL number of isotopes on library. +* IWISO id of isotope on library. +* ISOID isotope id requested. +* +*Parameters: output +* LIBWID isotope number associated with id (= 0 when isotope id is +* not found). +* +*----------------------------------------------------------------------- +* + IMPLICIT NONE +*---- +* SUBROUTINE ARGUMENTS +*---- + INTEGER NEL,IWISO(NEL),ISOID,LIBWID +*---- +* LOCAL VARIABLES +*---- + INTEGER IEL +*---- + LIBWID=0 + IF(ISOID.GT.0) THEN + DO 100 IEL=1,NEL + IF(IWISO(IEL).EQ.ISOID) THEN + LIBWID=IEL + GO TO 105 + ENDIF + 100 CONTINUE + 105 CONTINUE + ENDIF + RETURN + END |
