|
ADflow
v1.0
ADflow is a finite volume RANS solver tailored for gradient-based aerodynamic design optimization.
|
Variables | |
| string | EXT = "_b.f90" |
| DIR_ORI = sys.argv[1] | |
| DIR_MOD = sys.argv[2] | |
| patt_modules = re.compile(r"(\s*use\s*\w*)(_b)\s*") | |
| patt_module = re.compile(r"\s*module\s\w*") | |
| patt_module_start = re.compile("(\s*module\s)(\w*)(_b)\s*") | |
| patt_module_end = re.compile("(\s*end module\s)(\w*)(_b)\s*") | |
| patt_subroutine = re.compile(r"\s*subroutine\s\w*") | |
| patt_subend = re.compile(r"\s*end\s*subroutine") | |
| patt_comment = re.compile(r"\s*!.*") | |
| patt_inttype = re.compile(r"\s*integer\*4\s\w*") | |
| list | useful_modules |
| file_object_ori = open(os.path.join(DIR_ORI, f), "r") | |
| all_src = file_object_ori.read() | |
| bool | isModule = False |
| bool | hasSubroutine = False |
| line = line.lower() | |
| f = f.replace("_b", "_b") | |
| file_object_mod = open(os.path.join(DIR_MOD, f), "w") | |
| bool | inSubroutine = False |
| m = patt_modules.match(line) | |
| bool | found = False |
autoEdit - A Python tool to automatically edit a set of files
according to the specified user rules:
G. Kenway
| autoEditReverse.all_src = file_object_ori.read() |
Definition at line 56 of file autoEditReverse.py.
| autoEditReverse.DIR_MOD = sys.argv[2] |
Definition at line 17 of file autoEditReverse.py.
| autoEditReverse.DIR_ORI = sys.argv[1] |
Definition at line 16 of file autoEditReverse.py.
| string autoEditReverse.EXT = "_b.f90" |
Definition at line 14 of file autoEditReverse.py.
| autoEditReverse.f = f.replace("_b", "_b") |
Definition at line 76 of file autoEditReverse.py.
Definition at line 79 of file autoEditReverse.py.
Definition at line 51 of file autoEditReverse.py.
| bool autoEditReverse.found = False |
Definition at line 97 of file autoEditReverse.py.
| bool autoEditReverse.hasSubroutine = False |
Definition at line 63 of file autoEditReverse.py.
| bool autoEditReverse.inSubroutine = False |
Definition at line 83 of file autoEditReverse.py.
| bool autoEditReverse.isModule = False |
Definition at line 62 of file autoEditReverse.py.
| string autoEditReverse.line = line.lower() |
Definition at line 65 of file autoEditReverse.py.
| autoEditReverse.m = patt_modules.match(line) |
Definition at line 95 of file autoEditReverse.py.
| autoEditReverse.patt_comment = re.compile(r"\s*!.*") |
Definition at line 26 of file autoEditReverse.py.
| autoEditReverse.patt_inttype = re.compile(r"\s*integer\*4\s\w*") |
Definition at line 27 of file autoEditReverse.py.
| autoEditReverse.patt_module = re.compile(r"\s*module\s\w*") |
Definition at line 21 of file autoEditReverse.py.
| autoEditReverse.patt_module_end = re.compile("(\s*end module\s)(\w*)(_b)\s*") |
Definition at line 23 of file autoEditReverse.py.
| autoEditReverse.patt_module_start = re.compile("(\s*module\s)(\w*)(_b)\s*") |
Definition at line 22 of file autoEditReverse.py.
| autoEditReverse.patt_modules = re.compile(r"(\s*use\s*\w*)(_b)\s*") |
Definition at line 20 of file autoEditReverse.py.
| autoEditReverse.patt_subend = re.compile(r"\s*end\s*subroutine") |
Definition at line 25 of file autoEditReverse.py.
| autoEditReverse.patt_subroutine = re.compile(r"\s*subroutine\s\w*") |
Definition at line 24 of file autoEditReverse.py.
| list autoEditReverse.useful_modules |
Definition at line 32 of file autoEditReverse.py.