Quantcast
Channel: Intel® Fortran Compiler for Linux* and macOS*
Viewing all articles
Browse latest Browse all 2583

Including character "/" in a NAMELIST

$
0
0

Hello,

my program uses namelists to read input parameters and it behaves nicely except if I want to include a "/" in a string. An example that works is a var=value line like this, that sets the name of a file for I/O.

atmoname = "atmosphere_RTI.h5"

But if I want to include a path for the file:

atmoname = "sim1/atmosphere_RTI.h5"

Then the namelist parsing stops at that "/" and the namelist reading is incorrect.

I tried by starting the namelist with $params [...] $end instead of the standard &params  [...] /  , but it still chokes at reading the "/" in the string.

Thanks,

Ángel de Vicente

 


Viewing all articles
Browse latest Browse all 2583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>