|
string | ReadInput.BG_ReadInput = "src/ReadInput.cu" |
|
string | ReadInput.BG_Params_h = "src/Param.h" |
|
string | ReadInput.BG_Forcing_h = "src/Forcing.h" |
|
string | ReadInput.ParamListFile = "ParametersList-py.md" |
|
list | ReadInput.keys = [] |
|
list | ReadInput.ref_name = [] |
|
list | ReadInput.Params = [] |
|
list | ReadInput.Forcings = [] |
|
| ReadInput.R = open(BG_ReadInput,'r') |
|
| ReadInput.lines = R.readlines() |
|
| ReadInput.line = re.sub(r"[\t\s]*","",line) |
|
| ReadInput.key_loc = re.findall("parameterstr=\"(\w+)\"\.*", line, re.IGNORECASE)[0] |
|
| ReadInput.myParams = list(set(Params)) |
|
| ReadInput.myForcings = list(set(Forcings)) |
|
list | ReadInput.Default = ['']*len(keys) |
|
list | ReadInput.Example = ['']*len(keys) |
|
list | ReadInput.Comment = ['']*len(keys) |
|
list | ReadInput.Domain = ['NN']*len(keys) |
|
| ReadInput.P = open(BG_Params_h,'r') |
|
| ReadInput.P_lines = P.readlines() |
|
| ReadInput.F = open(BG_Forcing_h,'r') |
|
| ReadInput.F_lines = F.readlines() |
|
list | ReadInput.refword = ref_name[ind] |
| Creation of the variables for the tables. More...
|
|
list | ReadInput.key = keys[ind] |
|
list | ReadInput.com = [] |
|
| ReadInput.found = re.findall(rf"\s*std.*\s* {re.escape(refword)}\s*=*(.*);\s*(\/\/)*\s*(.*)" , line) |
|
| ReadInput.Line = i |
|
int | ReadInput.j = 1 |
|
| ReadInput.DEF = re.search(r'\.*Default:\s*(.*)',line); |
|
| ReadInput.ENDCOM = re.search(r'\.*\*\/\s*',line); |
|
| ReadInput.EXX = re.search(r'\.*Ex:\s*(.*)',line); |
|
dictionary | ReadInput.SubTitle = {} |
|
| ReadInput.Out = open(ParamListFile,'w') |
|
int | ReadInput.First = 0 |
| Paramters. More...
|
|
string | ReadInput.mystr = "|" + str(ParamTable.Reference[ind]) + "|" + str(ParamTable.Keys[ind]) + "|" + str(ParamTable.Default[ind][4:]) + "|" + str(ParamTable.Comment[ind][4:]) + "|\n" |
| Forcings. More...
|
|