24小时热门版块排行榜    

查看: 1482  |  回复: 2
本帖产生 1 个 博学EPI ,点击这里进行查看

herotcd

金虫 (初入文坛)

[求助] 关于Fortran程序运行的求助

请教高手指导Fortran程序的运行,程序已经从网站上下载,不会出现编程错误等问题,但本人对Fortran知之甚少,不知道如何运行
揭榜者可自行从URL:https://web.mit.edu/braatzgroup/links.html   (software TE process) 上下载以研究运行方法
赏金 100!!!!
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

snoopyzhao

至尊木虫 (职业作家)

【答案】应助回帖

关于如何运行,在 temain_mod.f 中不是有解释的:
CODE:
C  Instructions for running the program
C  ====================================
C
C  1) Go to line 220, change NPTS to the number of data points to simulate. For each
C     minute of operation, 60 points are generated.
C
C  2) Go to line 226, change SSPTS to the number of data points to simulate in steady
C     state operation before implementing the disturbance.
C
C  3) Go to line 367, implement any of the 21 programmed disturbances. For example, to
C     implement disturbance 2, type IDV(2)=1 .
C
C  4) The program will generate 15 output files and all data are recorded every
C     180 seconds, see Table 1 for details.  The default path is the home directory.
C     To change the file name and path, modify lines 346-360 accordingly.  
C     To overwrite the files that already existed, change STATUS='new' to
C     STATUS='old' from lines 346-360.
C              
C
C                     Table 1: Content of the output files
C
C      File Name                                Content
C      ---------                                -------
C    TE_data_inc.dat                             Time (in seconds)
C    TE_data_mv1.dat           Measurements for manipulated variables 1 to 4
C    TE_data_mv2.dat           Measurements for manipulated variables 5 to 8
C    TE_data_mv3.dat           Measurements for manipulated variables 9 to 12
C    TE_data_me01.dat           Measurements for measurement variables 1 to 4
C    TE_data_me02.dat           Measurements for measurement variables 5 to 8
C    TE_data_me03.dat           Measurements for measurement variables 9 to 12
C    TE_data_me04.dat           Measurements for measurement variables 13 to 16
C    TE_data_me05.dat           Measurements for measurement variables 17 to 20
C    TE_data_me06.dat           Measurements for measurement variables 21 to 24
C    TE_data_me07.dat           Measurements for measurement variables 25 to 28
C    TE_data_me08.dat           Measurements for measurement variables 29 to 32
C    TE_data_me09.dat           Measurements for measurement variables 33 to 36
C    TE_data_me10.dat           Measurements for measurement variables 37 to 40
C    TE_data_me11.dat           Measurements for measurement variable 41
C
C  5) To ensure the randomness of the measurement noises, the random number
C     G in the sub program (teprob.f, line 1187) has to be changed each time before
C     running 'temain_mod.f'.
C
C  6) Save the changes in 'temain_mod.f' and 'teprob.f' and compile the program in
C      unix by typing
C      f77 temain_mod.f teprob.f
C
C  7) Run the program by typing
C      a.out

2楼2011-11-30 22:53:59
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

mathcfd

金虫 (著名写手)

【答案】应助回帖

herotcd(金币+50, 博学EPI+1): 终于看到希望的曙光啦!!! 2011-12-01 11:01:58
herotcd(金币+50): 手把手教,终于回了,非常感谢! 2011-12-01 11:48:56
正好缺金币。
我已经将几个程序编译通过了,可发给你或在告诉你怎么编译。

首先将下载的txt文件的扩展名去掉,修正为扩展名为f,即temain.f,temain_mod.f,teprob.f

其次操作如下:

1、打开FORTRAN软件;
2、点击FILE/NEW,在出现的对话框中选择PROJECTS,鼠标点击fortran console application,  在该对话框右边project name 下面文本框中输入project名字,如 hello, location下面对话框浏览所建project工作目录位置,如 e:\TE_PROCESS, 之后点击右下角OK;出现对话框中单选an empty project,后点击对话框下方的finish按钮,在新出现的对话框中点击其下面的OK按钮;
3、出现的工作区左边,点击 hello(project的名字)前的+号,这时出现三个下拉文件:鼠标右击source file,在出现的对话框中选择第二项,跳出对话框中:在查找范围栏:打开TE_PROCESS文件夹,选中temain.f,再点OK按钮;回到工作区左边右击resource file,在出现的对话框中选择第二项,跳出对话框中:在查找范围栏:打开TE_PROCESS文件夹,选中teprob.f,再点OK按钮;
4、编译并运行 programme,  使用快捷键CTRL+F5,出现对话框,选择OK按钮。
Neverevergiveup!
3楼2011-11-30 23:22:15
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 herotcd 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 售SCI-T0P文章,我:8O.5.5.1.O.54,科目齐全,可+急 +3 E4V9bALS54sj 2026-09-19 3/150 2026-09-20 01:39 by 9i7PCSZyMzot
[论文投稿] 售SCI文章,我:8O5.5.1.O.54,科目齐全,可+急 +3 E4V9bALS54sj 2026-09-19 3/150 2026-09-20 01:27 by 9i7PCSZyMzot
[硕博家园] 售SCI文章,我:8O.5.5.1O.54,科目全,可十急 +3 E4V9bALS54sj 2026-09-19 3/150 2026-09-20 01:27 by 9i7PCSZyMzot
[博后之家] 售SCI一区T0P文章,我:8.O.55.1.O.5.4,科目全,可+急 +3 E4V9bALS54sj 2026-09-19 3/150 2026-09-20 01:15 by 9i7PCSZyMzot
[考博] 售SCI文章,我:8O.5.5.1O.54,科目全,可十急 +3 E4V9bALS54sj 2026-09-19 3/150 2026-09-20 01:03 by 9i7PCSZyMzot
[考研] 售SCI一区文章,我:8O5.5.1.O5.4,科目全,可伽急 +3 4pRyVGCVerAA 2026-09-19 3/150 2026-09-20 00:15 by 9i7PCSZyMzot
[硕博家园] 售SCI-T0P文章,我:8O.5.5.1.O.54,科目齐全,可+急 +3 4pRyVGCVerAA 2026-09-19 3/150 2026-09-20 00:03 by 9i7PCSZyMzot
[找工作] 售SCI一区T0P文章,我:8.O55.1.O.54,科目全,可十急 +4 4pRyVGCVerAA 2026-09-19 4/200 2026-09-20 00:03 by 9i7PCSZyMzot
[考博] 售SCI一区T0P文章,我:8.O.55.1.O54,科目全,可伽急 +3 4pRyVGCVerAA 2026-09-19 4/200 2026-09-19 23:51 by 9i7PCSZyMzot
[基金申请] 售SCI一区T0P文章,我:8.O55.1.O.54,科目全,可十急 +3 4pRyVGCVerAA 2026-09-19 4/200 2026-09-19 23:39 by 9i7PCSZyMzot
[考研] 售SCI一区T0P文章,我:8.O55.1.O.54,科目全,可十急 +3 4pRyVGCVerAA 2026-09-19 4/200 2026-09-19 23:27 by 9i7PCSZyMzot
[论文投稿] 售SCI一区T0P文章,我:8.O.55.1.O54,科目全,可伽急 +3 4pRyVGCVerAA 2026-09-19 4/200 2026-09-19 23:27 by 9i7PCSZyMzot
[公派出国] 售SCI一区T0P文章,我:8.O.55.1.O54,科目全,可伽急 +3 4pRyVGCVerAA 2026-09-19 4/200 2026-09-19 23:03 by 9i7PCSZyMzot
[考博] 售SCI一区T0P文章,我:8.O.55.1.O.54,科目齐全,可+急 +3 4pRyVGCVerAA 2026-09-19 4/200 2026-09-19 23:03 by 9i7PCSZyMzot
[公派出国] 售SCI文章,我:8O5.5.1.O.54,科目齐全,可+急 +3 4pRyVGCVerAA 2026-09-18 7/350 2026-09-19 21:03 by 9i7PCSZyMzot
[基金申请] 国社科系统bug了,是不是要放榜了? +7 kynobel 2026-09-16 9/450 2026-09-19 14:52 by 接好运婷
[考博] 申博发邮件 +8 Lmengk 2026-09-15 9/450 2026-09-19 09:27 by 中间体超市
[有机交流] 各位大神,目前国内有哪些比较好用的逆合成软件? 20+3 zapen 2026-09-15 9/450 2026-09-18 18:17 by zapen
[考博] 上海工程技术大学激光智能制造课题组|2027级博士研究生招生公告 +7 水士口 2026-09-16 8/400 2026-09-16 13:47 by kkklens
[考博] 上海工程技术大学激光智能制造课题组招收博士研究生 +8 两三岁ss 2026-09-14 8/400 2026-09-16 09:46 by 水士口
信息提示
请填处理意见