summaryrefslogtreecommitdiff
path: root/Donjon/src/SCRTRP.f
diff options
context:
space:
mode:
authorHEBERT Alain <alain.hebert@polymtl.ca>2025-12-12 16:09:45 -0500
committerHEBERT Alain <alain.hebert@polymtl.ca>2025-12-12 16:09:45 -0500
commit338c590068f0f867d89c78598af32f121df1936a (patch)
tree8db9d05830415100b701fa1b968c634760e81f70 /Donjon/src/SCRTRP.f
parentdf15a9b5e09ef7f6bd22fbb9cc3db577e2463cab (diff)
parent21253b193e759e843947a509d490c45823fa380e (diff)
Merge branch '18-implement-the-trival-one-calculation-case-in-subroutines-crtrp-f' into 'main'
#18: Implement the trival one-calculation case in subroutines *CRTRP.f See merge request dragon/5.1!33
Diffstat (limited to 'Donjon/src/SCRTRP.f')
-rw-r--r--Donjon/src/SCRTRP.f11
1 files changed, 9 insertions, 2 deletions
diff --git a/Donjon/src/SCRTRP.f b/Donjon/src/SCRTRP.f
index 53ef90d..b7a4a5a 100644
--- a/Donjon/src/SCRTRP.f
+++ b/Donjon/src/SCRTRP.f
@@ -62,6 +62,13 @@
INTEGER, ALLOCATABLE, DIMENSION(:) :: JDEBAR,JARBVA
REAL, ALLOCATABLE, DIMENSION(:) :: TERPA
*----
+* TRIVAL CASE WHERE NCAL=1
+*----
+ IF(NCAL.EQ.1) THEN
+ TERP(1)=1.0
+ GO TO 110
+ ENDIF
+*----
* RECOVER TREE INFORMATION
*----
LPSAP=LCMGID(IPSAP,'paramarbre')
@@ -195,11 +202,11 @@
TERP(ICAL)=TERP(ICAL)+TERTMP
100 CONTINUE
ENDIF
- IF(IMPX.GT.3) THEN
+ DEALLOCATE(JARBVA,JDEBAR)
+ 110 IF(IMPX.GT.3) THEN
WRITE(IOUT,'(25H SCRTRP: TERP PARAMETERS:/(1X,1P,10E12.4))')
1 (TERP(I),I=1,NCAL)
ENDIF
- DEALLOCATE(JARBVA,JDEBAR)
RETURN
*----
* MISSING ELEMENTARY CALCULATION EXCEPTION.