HPhi++
3.1.0
|
You can set a value of parameters with a new keyword in modpara
file by following way.
struct.h
file.The value with the keyword are read by ReadDefFileNInt
function in readdef.cpp
.
In the following, we describe the detail of the flow of reading the parameter.
To read the parameter, the switch statement where iKWidx
matches KWModPara
is used. The detail of the reading flow in this function are described as follows.
fgetsMPI(ctmp2, 256, fp)
function.The line is divided into keyword and number by using CheckWords
function.
For example, when you add new key word "NTest", you can get the value as follows: