Skip to content

Commit

Permalink
fix: Revert incorrectly committed code
Browse files Browse the repository at this point in the history
  • Loading branch information
abensonca committed Dec 4, 2023
1 parent 38237c5 commit 3c8c988
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ module Interfaces_Cloudy_CIE
private
public :: Interface_Cloudy_CIE_Tabulate

! Global file locks.
type(lockDescriptor) :: fileLockCoolingFunction, fileLockChemicalState

contains

subroutine Interface_Cloudy_CIE_Tabulate(metallicityMaximumLogarithmic,fileNameCoolingFunction,fileNameChemicalState,versionFileFormat,includeContinuum)
Expand Down Expand Up @@ -82,17 +85,15 @@ subroutine Interface_Cloudy_CIE_Tabulate(metallicityMaximumLogarithmic,fileNameC
double precision :: dummy , abundanceHelium , &
& energy , intensity , &
& powerTotal
type (lockDescriptor) :: fileLockCoolingFunction , fileLockChemicalState
!![
<optionalArgument name="includeContinuum" defaultsTo=".false."/>
!!]

!$omp critical(cloudyCIEFileLock)
! Ensure the requested file format version is compatible.
if (versionFileFormat /= versionFileFormatCurrent) call Error_Report(var_str("this interface supports file format version ")//versionFileFormatCurrent//" but version "//versionFileFormat//" was requested"//{introspection:location})
! Determine if we need to compute cooling functions.
computeCoolingFunctions=.false.
call File_Lock(char(fileNameCoolingFunction),fileLockCoolingFunction)
call File_Lock(char(fileNameChemicalState ),fileLockChemicalState )
if (File_Exists(fileNameCoolingFunction)) then
!$ call hdf5Access%set ( )
call outputFile%openFile(char(fileNameCoolingFunction),readOnly=.true.)
Expand Down Expand Up @@ -312,6 +313,7 @@ subroutine Interface_Cloudy_CIE_Tabulate(metallicityMaximumLogarithmic,fileNameC
! Write message.
call displayUnindent("...done",verbosityLevelWorking)
end if
!$omp end critical(cloudyCIEFileLock)
return
end subroutine Interface_Cloudy_CIE_Tabulate

Expand Down

0 comments on commit 3c8c988

Please sign in to comment.