首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > Python > fortran-namelist

fortran-namelist

  • 资源大小:5.85 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签: python fortran parser namelist

资 源 简 介

A very small library to parse a Fortran Namelist into a python class (dictionary derived). Fortran namelist are a very handy feature to set options in Fortran programs. The problem in their use is they cannot be validated directly into Fortran. A invalid Fortran namelist often cause a crash without any explicit error message and there are no way to catch this crash to resume/continue. Therefore a Python script running beforehand can parse the Fortran namelist file and do operations on it using tools available in Python. A check against some metadata describing the namelist format can also be done before the actual Fortran program runs. Options value can be passed to other program/scrips. Also a single configuration file can be shared between a script and a Fortran program using the Fortran namelist format and this python class to retrieve the options value.

文 件 列 表

fortran-namelist
namelist.py
settings.py
openanything.py

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP