Commit ed91b0c2 authored by Daniel Brown's avatar Daniel Brown

allowing tf as well as mtf for transfer cunction command

parent 815649d6
......@@ -295,7 +295,7 @@ void pre_scan(FILE *fp) {
mem.num_mirrors++;
mem.num_node_names++;
mem.num_nodes = mem.num_nodes + 2;
} else if (string_matches(s, "mtf ") || string_matches(s, "mtf2 ")){
} else if (string_matches(s, "tf ") || string_matches(s, "mtf ") || string_matches(s, "mtf2 ")){
mem.num_mech_transfer_funcs++;
} else if (string_matches(s, "bs* ") ||
string_matches(s, "bs2 ") ||
......
......@@ -183,6 +183,7 @@ void check_all_commands(FILE *fp){
(strncasecmp(s, "conf ", 5) == 0) ||
(strncasecmp(s, "startnode ", 10) == 0) ||
(strncasecmp(s, "mf ", 3) == 0) ||
(strncasecmp(s, "tf ", 3) == 0) ||
(strncasecmp(s, "mtf2 ", 5) == 0) ||
(strncasecmp(s, "mtf ", 4) == 0) ||
(strncasecmp(s, "frequency ", 10) == 0 ) ||
......@@ -330,7 +331,7 @@ void read_file(FILE *fp) {
read_manual_frequency(s,0);
} else if (strncasecmp(s, "mtf2 ", 5) == 0) {
read_general_mech_transfer_function(s);
} else if (strncasecmp(s, "mtf ", 4) == 0) {
} else if (strncasecmp(s, "mtf ", 4) == 0 || strncasecmp(s, "tf ", 3) == 0) {
read_QF_mech_transfer_function(s);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment