Skip to content

Commit

Permalink
Add solvent aliases (#1160)
Browse files Browse the repository at this point in the history
Add more aliases for available solvents and ensure a consistent name is used internally for a given solvent.

Signed-off-by: Ty Balduf <[email protected]>
Co-authored-by: Sebastian Ehlert <[email protected]>
  • Loading branch information
TyBalduf and awvwgk authored Feb 26, 2025
1 parent 0066025 commit 019937e
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions src/solv/model.f90
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,32 @@ subroutine normalizeSolventName(solvent, input)

solvent = lowercase(input)

!> Pick a consistent name to use for the solvents internally
select case(solvent)
case('acetonitrile','methylcyanide')
solvent='acetonitrile'
case('methylenechloride', 'dichloromethane', 'dcm', 'ch2cl2')
solvent='ch2cl2'
case('chloroform','chcl3','trichloromethane','tcm')
solvent='chcl3'
case('carbondisulfide','cs2')
solvent='cs2'
case('diethylether','ether')
solvent='ether'
case('dimethylformamide','dmf')
solvent='dmf'
case('dimethylsulfoxide','dmso')
solvent='dmso'
case('furane','furan')
solvent='furane'
case('nhexan','n-hexan','nhexane','n-hexane','hexane')
solvent='hexane'
case('tetrahydrofuran','thf')
solvent='thf'
case('h2o','water')
solvent='water'
end select

end subroutine normalizeSolventName


Expand Down

0 comments on commit 019937e

Please sign in to comment.