Skip to content
Snippets Groups Projects
Commit 2037fd53 authored by Brown's avatar Brown
Browse files

fix the urr to update with API calls

parent 88e67e7a
No related branches found
No related tags found
No related merge requests found
...@@ -116,15 +116,6 @@ module acs_m ...@@ -116,15 +116,6 @@ module acs_m
STOP STOP
END IF END IF
! !
! ############################################################
! JMB: If we only want to set theoretical xs's and derivatives
! ############################################################
! if( urr_calc ) then
! Where_To_Next = 'genfit'
! print *, "API call! --------------------------"
! return
! end if
! ############################################################
! !
! !
IF (Kendf.EQ.0 .AND. (Iterat.EQ.Itmax .OR. Iterat.EQ.0)) THEN IF (Kendf.EQ.0 .AND. (Iterat.EQ.Itmax .OR. Iterat.EQ.0)) THEN
......
...@@ -103,6 +103,17 @@ module acs1_m ...@@ -103,6 +103,17 @@ module acs1_m
CALL Zero_Array (Theory(1,1,Iterp1), Kntmax*Kdtset) CALL Zero_Array (Theory(1,1,Iterp1), Kntmax*Kdtset)
CALL Zero_Array (Theorl, Kntmax*Numelv*Kdtset) CALL Zero_Array (Theorl, Kntmax*Numelv*Kdtset)
CALL Zero_Array (Dtheor, Kntmax*Nvpall*Kdtset) CALL Zero_Array (Dtheor, Kntmax*Nvpall*Kdtset)
! ------------------------------------------------------------------------------
! JMB: temporary fix to reset the URR parameter values w/out using SAMMY fitting
! Note: Parnew from fit/mfit1.f
! ------------------------------------------------------------------------------
CALL Parnew ( A_Kkanrm , A_Kkdnrm , I_Kkknrm , I_Kiinrm , &
A_Istrel , A_Kkgglg , A_Istren , A_Idstre , A_Idistn , &
A_Iddist , A_Kkkkgg , A_Kkdlgg , A_Kkkkgf , A_Kkdlgf , &
I_Kkkjnl , I_Kkkjxl , I_Iflstr , I_Ifldst , I_Iflggg , &
I_Iflgff , I_Iflnrm , A_Kkktab , A_Kktabf , A_Kktabn , &
A_Ianold , I_Iflold , A_Idnold )
! !
! *** Generate cross sections -- loop over num. datasets ! *** Generate cross sections -- loop over num. datasets
DO Iset=1,Kdtset DO Iset=1,Kdtset
......
...@@ -375,12 +375,11 @@ module acs4_m ...@@ -375,12 +375,11 @@ module acs4_m
! !
DATA Type /'TOTA', 'INEL', 'FISS', 'CAPT', 'ELAS'/ DATA Type /'TOTA', 'INEL', 'FISS', 'CAPT', 'ELAS'/
DATA Zero /0.0d0/, One /1.0d0/ DATA Zero /0.0d0/, One /1.0d0/
dataInd = 2
theoInd = 3
call grid%initialize() ! JMB: data grids set up in fff
call grid%setDataIndex(dataInd) ! 2 since angle-integrated and no time-shift call expData%getGrid(grid,Iset)
dataInd = grid%getDataColumn()
theoInd = dataInd+1
! !
Chisqu = Zero Chisqu = Zero
DO Ienerg=1,Khmax DO Ienerg=1,Khmax
...@@ -440,14 +439,13 @@ module acs4_m ...@@ -440,14 +439,13 @@ module acs4_m
call grid%addData(Ienerg,theoInd,Theory(Ienerg)) call grid%addData(Ienerg,theoInd,Theory(Ienerg))
do Ipar=1,Nvpall do Ipar=1,Nvpall
! TODO: consider whether DerivativeList is more appropriate
call grid%addData(Ienerg,theoInd+Ipar,Dtheor(Ipar,Ienerg)) call grid%addData(Ienerg,theoInd+Ipar,Dtheor(Ipar,Ienerg))
end do end do
! ----------------------------------------------------------------- ! -----------------------------------------------------------------
! !
END IF END IF
END DO END DO
call expData%addGrid(grid)
! !
Chisqu = Chisqu/dFLOAT(Khmax) Chisqu = Chisqu/dFLOAT(Khmax)
WRITE (21,10000) Iset, Type(Ktype), Chisqu WRITE (21,10000) Iset, Type(Ktype), Chisqu
......
...@@ -197,6 +197,7 @@ module fff_m ...@@ -197,6 +197,7 @@ module fff_m
CALL Adjust_Fff (A_Kkkkex , A_Kkspin , A_Kkkpty ) CALL Adjust_Fff (A_Kkkkex , A_Kkspin , A_Kkkpty )
! !
! *** Read the cross section data ! *** Read the cross section data
! JMB: also set up C++ mem. GridDataList
CALL Acsinp (I_Kkktyp , I_Kkkknt , A_Kkkkex , A_Keeset , & CALL Acsinp (I_Kkktyp , I_Kkkknt , A_Kkkkex , A_Keeset , &
A_Kssset , A_Kuuset , A_Kwwset ) A_Kssset , A_Kuuset , A_Kwwset )
CLOSE (UNIT=15) CLOSE (UNIT=15)
......
...@@ -15,7 +15,8 @@ module fff9_m ...@@ -15,7 +15,8 @@ module fff9_m
use EndfData_common_m use EndfData_common_m
IMPLICIT DOUBLE PRECISION (a-h,o-z) IMPLICIT DOUBLE PRECISION (a-h,o-z)
integer :: numDataSets integer :: numDataSets, dataInd
type(GridData) :: expGrid
DIMENSION Kktype(*), Kkkntx(*), Ex(*), Eeeset(Kntmax,*), & DIMENSION Kktype(*), Kkkntx(*), Ex(*), Eeeset(Kntmax,*), &
Sssset(Kntmax,*), Uuuset(Kntmax,*), Wwwset(Kntmax,*) Sssset(Kntmax,*), Uuuset(Kntmax,*), Wwwset(Kntmax,*)
...@@ -32,6 +33,14 @@ module fff9_m ...@@ -32,6 +33,14 @@ module fff9_m
numDataSets = Kdtset numDataSets = Kdtset
IF (Kpntws.NE.0) numDataSets = Kpntws IF (Kpntws.NE.0) numDataSets = Kpntws
DO I=1,numDataSets DO I=1,numDataSets
! ----------------------------------
! JMB: add grids to the gridDataList
! ----------------------------------
call expGrid%initialize()
dataInd = 2 ! 2 since angle-integrated and no time-shift (URR)
call expGrid%setDataIndex(dataInd)
call expData%addGrid(expGrid)
! ----------------------------------
IF (Kexptd.EQ.1) THEN IF (Kexptd.EQ.1) THEN
IF (Fdatax(I).EQ.Fblank) GO TO 30 IF (Fdatax(I).EQ.Fblank) GO TO 30
CALL Filopn (17, Fdatax(I), 0) CALL Filopn (17, Fdatax(I), 0)
......
...@@ -40,7 +40,7 @@ contains ...@@ -40,7 +40,7 @@ contains
subroutine sammy_init(sizeData) BIND(C,name="sammy_init") subroutine sammy_init(sizeData) BIND(C,name="sammy_init")
integer :: sizeData integer :: sizeData
if( sizeData.lt.0 ) then if( sizeData.lt.0 ) then
urr_calc = .true. ! we're calling this through fitAPI urr_calc = .true. ! when we're calling this through fitAPI
sizeData = sizeData * (-1) sizeData = sizeData * (-1)
end if end if
...@@ -115,7 +115,13 @@ contains ...@@ -115,7 +115,13 @@ contains
ii = iter ii = iter
call Samthe_0 if( urr_calc ) then
call Samacs_0
Where_To_Next = 'samthe'
return
else
call Samthe_0
end if
! run until we find one of the relevant sammy fit subroutine ! run until we find one of the relevant sammy fit subroutine
iter = 0 iter = 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment