Thank you @Harper !
I guess I just randomly set (a30), no particular reason lol. Just to display a file name. But (A)
definitely is a better idea!
Indeed, I will collect #
, that is why I did some stupid things like
csvname = adjustl(csvname)
csvname = csvname(1:index(csvname,' ')-1) ! there should be space before # in the input file.
to delete #
. Like I may read in superman.csv # superman is super.
then after the treatment I will read in the correct file name superman.csv
.
About #
, it is just indicating the beginning of a comment which will help me remember the meaning of each input. My PhD advisor’s input file using #
for comment (well he use Linux like you) so I just followed the tradition and did not even think about it, lol. Perhaps it does not have particular meaning in Windows.
Yeah, I tried to use space instead of TAB, but i still have the problem. But it looks like the problem is in my MPI part. If do not use my MPI module, thenwithout MPI it seems the read in process is OK.