BG_Flood  0.1
Documentation (Work-in-progress)
ReadInput Namespace Reference

Classes

class  InfoTable
 

Variables

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

Variable Documentation

◆ BG_Forcing_h

string ReadInput.BG_Forcing_h = "src/Forcing.h"

◆ BG_Params_h

string ReadInput.BG_Params_h = "src/Param.h"

◆ BG_ReadInput

string ReadInput.BG_ReadInput = "src/ReadInput.cu"

◆ com

list ReadInput.com = []

◆ Comment

list ReadInput.Comment = ['']*len(keys)

◆ DEF

ReadInput.DEF = re.search(r'\.*Default:\s*(.*)',line);

◆ Default

list ReadInput.Default = ['']*len(keys)

◆ Domain

string ReadInput.Domain = ['NN']*len(keys)

◆ ENDCOM

ReadInput.ENDCOM = re.search(r'\.*\*\/\s*',line);

◆ Example

list ReadInput.Example = ['']*len(keys)

◆ EXX

ReadInput.EXX = re.search(r'\.*Ex:\s*(.*)',line);

◆ F

ReadInput.F = open(BG_Forcing_h,'r')

◆ F_lines

ReadInput.F_lines = F.readlines()

◆ First

int ReadInput.First = 0

Paramters.

◆ Forcings

list ReadInput.Forcings = []

◆ found

ReadInput.found = re.findall(rf"\s*std.*\s* {re.escape(refword)}\s*=*(.*);\s*(\/\/)*\s*(.*)" , line)

◆ j

int ReadInput.j = 1

◆ key

list ReadInput.key = keys[ind]

◆ key_loc

ReadInput.key_loc = re.findall("parameterstr=\"(\w+)\"\.*", line, re.IGNORECASE)[0]

◆ keys

list ReadInput.keys = []

◆ line

ReadInput.line = re.sub(r"[\t\s]*","",line)

◆ Line

ReadInput.Line = i

◆ lines

ReadInput.lines = R.readlines()

◆ myForcings

ReadInput.myForcings = list(set(Forcings))

◆ myParams

ReadInput.myParams = list(set(Params))

◆ mystr

string ReadInput.mystr = "|" + str(ParamTable.Reference[ind]) + "|" + str(ParamTable.Keys[ind]) + "|" + str(ParamTable.Default[ind][4:]) + "|" + str(ParamTable.Comment[ind][4:]) + "|\n"

Forcings.

Non-identified.

◆ Out

ReadInput.Out = open(ParamListFile,'w')

◆ P

ReadInput.P = open(BG_Params_h,'r')

◆ P_lines

ReadInput.P_lines = P.readlines()

◆ ParamListFile

string ReadInput.ParamListFile = "ParametersList-py.md"

◆ Params

list ReadInput.Params = []

◆ R

ReadInput.R = open(BG_ReadInput,'r')

◆ ref_name

list ReadInput.ref_name = []

◆ refword

list ReadInput.refword = ref_name[ind]

Creation of the variables for the tables.

◆ SubTitle

dictionary ReadInput.SubTitle = {}