找回密码
 注册
查看: 4297|回复: 12

从Fortran原程序中取出子程序/函数的程序:

[复制链接]
发表于 2003-6-19 05:49:05 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

x
EXTRACT - Painless Module Extraction
EXTRACT is a simple utility that can pull a copy of a FORTRAN block data, function, module, program or subroutine from a big file, and save the copy in a little file. I've found this extremely useful, as an alternative to printing out a huge library of routines, or using an editor to extract the seven routines I need from a collection of 200.
The program can be used in command line form:
extract module file.f
which will search file.f90 for a module named module, and, if found, write the text to the file module.f90. The program can be invoked interactively with no arguments:
extract
in which case it will request the necessary information from the user.
Files you may copy include:
extract.f90, the source code;
extract_prb.f90, a sample text file;
extract_prb.out, output from a sample run;
The list of routines includes:
EXTRACT extracts a module from a FORTRAN file.
C_CAP capitalizes a single character.
FILE_EXT determines the "extension" of a file name.
GET_UNIT returns a free FORTRAN unit number.
MODULE_FIND tries to find the first line of a given named module in a file.
MODULE_WRITE writes out the lines of a file until 'END' is reached.
S_BEFORE_SS_COPY copies a string up to a given substring.
S_BLANK_DELETE removes blanks from a string, left justifying the remainder.
S_BLANKS_DELETE replaces consecutive blanks by one blank.
S_CAP replaces any lowercase letters by uppercase ones in a string.
S_CAT concatenates two strings to make a third string.
S_EQI is a case insensitive comparison of two strings for equality.
S_INDEX_LAST finds the LAST occurrence of a given substring.
S_INDEXI is a case-insensitive INDEX function.
S_LEFT flushes a string left.
S_SPLIT divides a string into three parts, given the middle.
WORD_NEXT_READ "reads" words from a string, one at a time.
 楼主| 发表于 2003-6-19 05:49:48 | 显示全部楼层

从Fortran原程序中取出子程序/函数的程序:

例子
 楼主| 发表于 2003-6-19 05:50:34 | 显示全部楼层

从Fortran原程序中取出子程序/函数的程序:

output from a sample run
发表于 2003-6-19 20:36:39 | 显示全部楼层

从Fortran原程序中取出子程序/函数的程序:

老兄,太棒了!谢谢!
 楼主| 发表于 2003-6-19 21:49:15 | 显示全部楼层

从Fortran原程序中取出子程序/函数的程序:

谢谢枫华山庄兄弟给我捧场。
发表于 2003-6-19 22:00:26 | 显示全部楼层

从Fortran原程序中取出子程序/函数的程序:

好,支持一下。
发表于 2003-6-20 18:32:30 | 显示全部楼层

从Fortran原程序中取出子程序/函数的程序:

sillybear兄
可以知道你的邮箱吗?
很想向你多多学习
 楼主| 发表于 2003-6-21 01:02:11 | 显示全部楼层

从Fortran原程序中取出子程序/函数的程序:

咦,你可以查看到的呀。
发表于 2005-2-18 11:07:56 | 显示全部楼层

从Fortran原程序中取出子程序/函数的程序:

太好的东西,必须要强烈支持!
发表于 2005-2-18 15:27:15 | 显示全部楼层

从Fortran原程序中取出子程序/函数的程序:

很好,很有用,以前编程的时候,经常碰到这个问题,挺耗时间的
发表于 2005-12-1 20:46:19 | 显示全部楼层

从Fortran原程序中取出子程序/函数的程序:

谢谢了!
好东西!!!!
发表于 2006-7-31 18:43:08 | 显示全部楼层

从Fortran原程序中取出子程序/函数的程序:

谢谢楼主!很好用!
发表于 2006-7-31 23:37:38 | 显示全部楼层

从Fortran原程序中取出子程序/函数的程序:

学习
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表