-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathisGAMESS.py
More file actions
55 lines (47 loc) · 2.48 KB
/
Copy pathisGAMESS.py
File metadata and controls
55 lines (47 loc) · 2.48 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/usr/bin/env python3
####################################################################################################
# #
# isGAMESS.py #
# Python script to obtain Inner-Shell Excited States at MCSCF level using GAMESS #
# #
####################################################################################################
### Author: Carlos E. V. de Moura, Ph.D. (https://github.com/carlosevmoura) ###
### From isGAMESS repository (https://github.com/carlosevmoura/isGAMESS) ###
####################################################################################################
# #
# Usage: isGAMESS.py <INPUT> --header-is <HEADER_INNER_SHELL> --header-fr <HEADER_FROZEN_SHELL> #
# --cutoff CUTOFF --max-steps MAX_STEPS --version VERSION --cpus CPUS #
####################################################################################################
####################################################
### Loading modules ###
####################################################
## isGAMESS internal modules ##
from islib import gamessEnv, isOptions, isMCSCF
## Operating System Interfaces Module ##
import os
## System-specific parameters and functions ##
import sys
## High-level operations on files ##
import shutil
## Allows to spawn new processes ##
import subprocess
## Parser for command-line options ##
import argparse
####################################################
# Main program
if __name__ == '__main__':
# Checking it GAMESS path is defined
gamess = gamessEnv.EnvironmentSetup()
# Obtaining arguments from terminal
options = isOptions.get_options()
# IS-MCSCF
if not options.skip_mcscf:
is_mcscf = isMCSCF.InnerShellMCSCF(gamess, options)
else:
is_mcscf = None
# IS-MRMP
if options.mrmp:
is_mrmp = isMCSCF.InnerShellMRMP(gamess, is_mcscf, options)
# IS-MRCI
if options.mrci:
is_mrci = isMCSCF.InnerShellMRCI(gamess, is_mcscf, options)