c****w 发帖数: 565 | 1 any lib or module? thanks! | k****z 发帖数: 550 | 2 use some script language to pre-process it and call fortran in backend.
that'll be a nicer combination. | c****w 发帖数: 565 | 3 sometimes, the code deals with a file with strings, which affects the
variable definitions. I used python to read file and deal with string with
regex very quickly. However, if doing with Fortran, it is quite consuming.
e.g. a line in file:
1_2_3, 3_4_5, 6_7_8
If fortran code reads it, the line is passed to array A. Each item is one
string. However, if i want 1st num in *_*_* to be stored in an array, 2nd
num in another array, and 3rd so on. I don't want to do it in "for" loop
with A(i)(1), A(i) | c****w 发帖数: 565 | 4 That's it. I just don't know whether there is a build-in way. |
|