首页 | 本学科首页   官方微博 | 高级检索  
相似文献
 共查询到20条相似文献,搜索用时 140 毫秒
1.
阐述了在matlab环境下,调用Fortran语言的原理,并通过一实例说明如何实现Matlab,Fortran两种语言的混合编程.  相似文献   

2.
支持产品设计的滑动轴承网络计算程序的研究   总被引:2,自引:0,他引:2  
分析了如何将原有大量由Fortran编写的科学计算程序转换为能够在网络上提供计算服务的网络应用程序的问题。提出了将Fortran程序改编为动态链接库,并进一步包装为标准的COM组件的方法,在网页中调用组件进行计算,从而能够较好地实现在浏览器/服务器结构下通过计算程序资源的远程调用来支持产品的设计过程。  相似文献   

3.
介绍了C 和Fortran 90混合语言编程中,在C 中调用Fortran动态连接库DLL  相似文献   

4.
Visual C++与Compaq Visual Fortran混合编程研究   总被引:7,自引:2,他引:7  
详细论述了Visual C 与Compaq Visual Fortran混合编程所要解决的问题,并结合实例提出了解决方法,并进而利用函数直接嵌入法和动态链接库调用方法结合实例用Visual C 调用了已有Fortran代码,有效的利用了Fortran遗产代码,避免了资源浪费,节省了编程时间,在工程与科学研究中有着极大的应用价值。  相似文献   

5.
将Fortran程序移植到Windows平台上,利用VB可视化开发语言与Fortran语言混合编程是一种简单有效的方法。本文介绍了如何用VB调用Fortran语言程序的实现方法。  相似文献   

6.
由于工作站版本的储层地质统计分析系统GASOK棱心部分代码是用Fortran语言编写的。随着Windon成为主流操作平台。如何准确无误地将这些Fortran代码移植到微机上。成为一个必须解决的问题。在此背景下。本文提出采用基于动态链接库技术。来解决Fertran和VC之间的混合编程问题。论述了Windows中的动态链接库的实现原理,从调用规范、数据交换与访问以及数据类型等方面系统研究了Fortran和VC的混编问题.并提出了具体的解决方案。  相似文献   

7.
论述了VC++与Fortran混合编程方法,重点介绍了动态链接库的方法。阐明了VC++与Fortran混合编程要解决的问题,以及地质统计学反演算法原理。探讨了VC++调用Fortran动态链接库的方法,和将已有Fortran程序修改为动态链接库的方法。通过采用VC++与Fortran混合编程,实现了地质统计学反演算法。利用已有的Fortran程序,实现了代码复用,节省了程序开发时间。  相似文献   

8.
高级语言与汇编语言间的通用接口设计   总被引:1,自引:0,他引:1  
文中通过分析汇编子程序调用的参数传递过程,设计出一个简单而实用的通用接口,可供Fortran.BASIC和C程序调用,从而实现高级语言对汇编程序资源共享。这一接口已成功地应用于微机辅助的故障诊断系统。  相似文献   

9.
动态数组在数据处理时有着独特的优势,Fortran语言数组功能强大并支持动态数组,而C语言不支持动态数组。利用Fortran与C/C++的混合编译思想,通过调用Fortran90例程的方法,在C中实现动态数组并给出了程序代码。  相似文献   

10.
Matlab与Fortran混合编程之DLL实现方法   总被引:1,自引:0,他引:1       下载免费PDF全文
简要介绍Matlab和Fortran各自的优缺点,详细阐述Matlab调用Fortran生成的动态链接库实现混合编程的两种方法。以高斯约当列主元素法求逆为例,从计算时间、精度等方面详细比较了同一算法在多种实现方式下的执行情况。计算结果表明:基于动态链接库的混合编程方法能充分利用现有软件包,结合Fortran计算效率高、Matlab矩阵计算及图形处理功能强的优点,符合当前科学工程计算程序设计的发展方向。  相似文献   

11.
将Fortran控制台应用程序制作成Fortran动态链接库文件,使用C#语言开发软件界面并调用Fortran DLL实现混合编程。给出了C#语言和Fortran语言混合编程时需要注意的要点。结合示例介绍了一种利用txt文件快速实现C#和Fortran混合编程的方法。该方法只需要对Fortran源代码做较小的修改就能有效地实现两种语言的混合编程,此方法对其他不同语言之间的混合编程提供了一种参考思路。  相似文献   

12.
Visual C++和Fortran的混合编程—CASAC软件Windows版的研制   总被引:9,自引:2,他引:7  
计算机辅助筛选生物活性化合物软件(Computer-Aided Screening bioActive Compounds,简称CASAC)是在本实验室开发的用于研究分子 结构和生物活性关系的软件。它最早是在DOS系统下开发的,目前研制这个软件的Windows版本。所用到的两个编程工具是Fortran PowerStation和Visual C 。通过Fortran和C 的混合编程,本文讲述如何用Fortran PowerStation生成动态连接库,Visual C 如何调用所生成的动态连接库及如何调试。  相似文献   

13.
Fortran 90与面向对象程序设计   总被引:1,自引:0,他引:1  
面向对象方法已经成一种最有前途的软件开发方法之一。面对对象程序设计方法应用于工程计算已有近十年,所采用的语言为C++,Eiffel和Smalltalk等。  相似文献   

14.
Fortran与C/C++的混合编译   总被引:10,自引:0,他引:10  
任慧  周振红  张成才 《计算机工程与设计》2007,28(17):4096-4098,4111
在长期的数值计算中人们积累了大量宝贵的程序资源--Fortran、C/C 源程序,为了能综合利用这些资源,Win32环境下多采取基于动态链接库DLL的混合编程方法,增加了额外建造、加载DLL的负担.提出一种Fortran与C/C 混合编程的便捷途径:在特定集成开发环境下的混合编译,系统探讨Fortran与C/C 在调用约定上的协调问题,并用典型实例加以说明.  相似文献   

15.
李伟  姚彦忠  曹轶 《计算机仿真》2005,22(10):205-208
跟踪监视运行中的数值计算需要与计算程序进行交互,在遗留的Fortran计算程序上实现这种交互必须改动计算程序源代码,而源代码改动的程度是必须考虑的一个重要方面.该文简要介绍一个跟踪可视化系统的设计与实现,该系统中包括一个独立的监视程序,并基于COM技术构造监视程序与FORTRAN计算程序之间的交互机制.系统对Fortran计算代码的修改十分简便,修改后的计算程序在运行期间,可以根据需要随时启动或关闭监视程序,用户通过监视程序可以选择所关注的计算数据,从不同的方面观察计算状况.  相似文献   

16.
The Portable Parallelizing Fortran Compiler (PPFC) is an additional component for the portable programming environment developed in Tel-Aviv University for scientific code. This environment supports portable and efficient programming of diverse MIMD multiprocessors, both distributed- and shared-memory. Till now this environment has consisted of two tools: the Virtual Machine for MultiProcessors (VMMP) and the Portable Parallelizing Pascal compiler (P3C). We have added the PPFC which is an automatic parallelizer compiler for the Fortran language. The compiler is fully automatic (does not require additional declarations to assist parallelization), which is characterized by loops operating on regular data structures, and produces efficient and portable code for a variety of multiprocessors from the same serial code. The parallel implementation uses the VMMP, which is a software package that provides a coherent set of services for explicitly parallel application programs running on diverse MIMD multiprocessors. VMMP is intended to simplify parallel program writing and to promote portable and efficient programming. The PPFC parallelized 12 out of the 24 Livermore Loops. It was also applied to parallelize all the 14 Fortran application programs that where parallelized by the P3C and achieved the same speed-ups and efficiencies. In most examples the PPFC achieved high speed-ups and efficiencies on all target multiprocessors. The PPFC emphasizes efficiency and code portability. Although PPFC employs a relatively simple data flow analysis, it produces efficient code for various widely used application programs.  相似文献   

17.
18.
Adaptive grid refinement in Fortran (AGRIF) is a Fortran90 package for the integration of adaptive mesh refinement (AMR) features within existing finite difference codes. The package first provides model-independent Fortran90 procedures containing the different operations in an AMR process: time integration of grid hierarchy, clustering, interpolations, updates, etc. The package then creates the Fortran90 model-dependent part of the code based on an entry file written by the user.The basic idea of AGRIF is to make use of Fortran90 pointers to successively address the variables of the different grids of an AMR process. As pointers can be used exactly like other (static) variables in Fortran, most of the original code will remain unchanged.  相似文献   

19.
Fortran D is a version of Fortran extended with data decomposition specifications. It is designed to provide a machine-independent programming model for data-parallel applications and has heavily influenced the design of High Performance Fortran (HPF). In previous work we described Fortran D compilation algorithms for individual procedures. This paper presents an interprocedural approach to analyze data and computation partitions, optimize communication, support dynamic data decomposition, and perform other tasks required to compile Fortran D programs. Our algorithms are designed to make interprocedural compilation efficient. First, we collect summary information after edits to solve important data-flow problems in a separate interprocedural propagation phase. Second, for nonrecursive programs we compile procedures in reverse topological order to propagate additional interprocedural information during code generation. We thus limit compilation to a single pass over each procedure body. We also perform optimizations across procedure boundaries by delaying instantiation of the computation partition, communication, and dynamic data decomposition. Empirical results show that interprocedural optimization is crucial in achieving acceptable performance for a common application code.  相似文献   

20.
A language for large scientific applications should facilitate encoding and debugging of programs at the highest level possible. At the same time it should facilitate generation of efficient code for parallel machines. Often these two requirements are conflicting, and trade-offs must be made. Functional and other declarative languages offer relief on both counts. The use of higher-order functions, especially in carried forms, can raise the level of programming dramatically. In addition, such languages often have straightforward operational semantics, thereby providing tremendous opportunities for parallel execution. Programs written in declarative languages thus eliminate the problem of “detecting parallelism.” This paper illustrates programming in one such language, Id Nouveau, and contrasts it with programming in Fortran. Using an excerpt from an application known as Simple, it is shown how a program can be composed in Id Nouveau from small functions that directly relate to the mathematical and physical concepts of the problem. The difficulty of expressing these concepts in Fortran is discussed. Finally, it is shown that by performing simple transformations, such as in-line substitution of functions, the resulting Id Nouveau code becomes as efficient as an equivalent Fortran program written to run efficiently on a parallel machine.  相似文献   

设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号