ADflow  v1.0
ADflow is a finite volume RANS solver tailored for gradient-based aerodynamic design optimization.
Namespaces | Variables
autoEditForward.py File Reference

Go to the source code of this file.

Namespaces

 autoEditForward
 

Variables

string autoEditForward.EXT = "_d.f90"
 
 autoEditForward.DIR_ORI = sys.argv[1]
 
 autoEditForward.DIR_MOD = sys.argv[2]
 
 autoEditForward.patt_modules = re.compile(r"(\s*use\s*\w*)(_d)\s*")
 
 autoEditForward.patt_module = re.compile(r"\s*module\s\w*")
 
 autoEditForward.patt_module_start = re.compile("(\s*module\s)(\w*)(_d)\s*")
 
 autoEditForward.patt_module_end = re.compile("(\s*end module\s)(\w*)(_d)\s*")
 
 autoEditForward.patt_subroutine = re.compile(r"\s*subroutine\s\w*")
 
 autoEditForward.patt_function = re.compile(r"\s*function\s\w*")
 
 autoEditForward.patt_subend = re.compile(r"\s*end\s*subroutine")
 
 autoEditForward.patt_funcend = re.compile(r"\s*end\s*function\n")
 
list autoEditForward.useful_modules
 
list autoEditForward.modSubToKeep = []
 
 autoEditForward.file_object_ori = open(os.path.join(DIR_ORI, f), "r")
 
 autoEditForward.all_src = file_object_ori.read()
 
bool autoEditForward.isModule = False
 
bool autoEditForward.hasSubroutine = False
 
 autoEditForward.line = line.lower()
 
 autoEditForward.f = f.replace("_d", "_d")
 
 autoEditForward.file_object_mod = open(os.path.join(DIR_MOD, f), "w")
 
bool autoEditForward.inSubroutine = False
 
 autoEditForward.m = patt_modules.match(line)
 
bool autoEditForward.found = False