-
Notifications
You must be signed in to change notification settings - Fork 0
/
Fep.f90
38 lines (26 loc) · 1.09 KB
/
Fep.f90
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
PROGRAM Fep
! #DES: Program to only do FEP analysis of data
USE Util, ONLY : Startup, Cleanup
USE Data, ONLY : ComputeDerivedData
USE Log, ONLY : logUnit
IMPLICIT NONE
CALL Startup(readCoords=.FALSE.)
CALL ComputeDerivedData(logUnit,doTiming=.FALSE.,readCoords =.FALSE.,doFEPUS=.FALSE.)
CALL FepAnalysis()
CALL CleanUp()
CONTAINS
SUBROUTINE FepAnalysis
USE Input, ONLY : mask, energynames, outDir, stateEnergy
USE Data, ONLY : lambda, mappingEnergies
USE Analysis, ONLY : WriteMeanEnergyBreakdown, FepBreakdown
USE FileIO, ONLY : OpenFile, CloseFile
IMPLICIT NONE
INTEGER, PARAMETER :: outUnit = 22
CALL OpenFile(outUnit,TRIM(ADJUSTL(outDir))//"/mean-energy.csv",'write')
CALL WriteMeanEnergyBreakdown(stateEnergy,mask,energyNames,lambda,outUnit)
CALL CloseFile(outUnit)
CALL OpenFile(outUnit,TRIM(ADJUSTL(outDir))//"/fep-breakdown.csv","write")
CALL FepBreakdown(lambda(:),mappingEnergies(:,:,:,:),mask(:,:),energyNames(:),outUnit)
CALL CloseFile(outUnit)
END SUBROUTINE FepAnalysis
END PROGRAM Fep