24小时热门版块排行榜    

查看: 1463  |  回复: 2
本帖产生 1 个 博学EPI ,点击这里进行查看
当前只显示满足指定条件的回帖,点击这里查看本话题的所有回帖

herotcd

金虫 (初入文坛)

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

请教高手指导Fortran程序的运行,程序已经从网站上下载,不会出现编程错误等问题,但本人对Fortran知之甚少,不知道如何运行
揭榜者可自行从URL:https://web.mit.edu/braatzgroup/links.html   (software TE process) 上下载以研究运行方法
赏金 100!!!!
已阅   回复此楼   关注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的回帖
查看全部 3 个回答

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的回帖
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[基金申请] FileCode能看出啥? +8 要乐观耀哥 2026-08-10 23/1150 2026-08-13 00:35 by 要乐观耀哥
[基金申请] 关于Filecode分析方法 +8 majunge000 2026-08-10 9/450 2026-08-12 22:17 by 虫友是什么虫
[基金申请] 2019年青年基金涵评意见,大家看看几个A,几个B? +10 Tide man 2026-08-11 10/500 2026-08-12 20:59 by 陈晨晨陈啊
[基金申请] 不应该看fileCode +5 且听虎啸 2026-08-12 6/300 2026-08-12 16:26 by Tide man
[基金申请] 好奇怪的filecode +5 布布和一二 2026-08-08 6/300 2026-08-12 16:11 by 云上清扬
[基金申请] 长年满屏的广告,版主太不责任了。基金也等的急 +4 gltch 2026-08-12 4/200 2026-08-12 16:08 by eulota
[基金申请] filecode +13 documentary 2026-08-10 15/750 2026-08-12 15:56 by 云上清扬
[论文投稿] 职称评审,求友友推荐见刊最快的期刊 +4 工厂打螺丝 2026-08-08 4/200 2026-08-12 09:18 by hansi2025
[基金申请] 小木虫上这么多卖论文的,真有人买论文么?感觉没必要啊 +8 Tide man 2026-08-10 9/450 2026-08-11 20:39 by beefly
[基金申请] 有时候,自然基金真的不能太认真 (我的申报经验) +3 majunge000 2026-08-11 4/200 2026-08-11 20:13 by lch2012
[基金申请] 帮忙看看fileCode +7 wwncly 2026-08-10 13/650 2026-08-11 19:36 by 冰心玉壶晴
[基金申请] 分享一下我之前已中青C的计划书的filecode +3 布布和一二 2026-08-11 4/200 2026-08-11 15:20 by aasahr
[基金申请] 确定了,国自然21号放榜 +6 布布和一二 2026-08-10 7/350 2026-08-10 19:15 by 2000zf36392
[基金申请] 关于代码变化问题,想知道的进来 +17 且听虎啸 2026-08-07 24/1200 2026-08-10 18:35 by zhangduo2008
[基金申请] 国自然结果 +4 Vierhys 2026-08-10 8/400 2026-08-10 15:06 by Vierhys
[基金申请] 2026国自然放榜时间 +9 布布和一二 2026-08-08 9/450 2026-08-10 11:22 by xxxx2020
[基金申请] fileCode有新解读? +10 Tide man 2026-08-08 18/900 2026-08-09 12:55 by 仁砚薪传
[基金申请] 关于filecode,很负责任的告诉大家 +6 爱看书的可乐 2026-08-08 7/350 2026-08-08 22:13 by a_niu
[基金申请] filecode变化情况 +6 布布和一二 2026-08-07 22/1100 2026-08-07 14:45 by 且听虎啸
[基金申请] filecode +8 布布和一二 2026-08-06 11/550 2026-08-06 20:41 by tangpu318
信息提示
请填处理意见