Communication method among distribution type FORTRAN modules

A communication method, a technology between modules, applied in the direction of inter-program communication, multi-program device, etc., can solve the problems of not reaching the level of distribution, cross-platform, poor visualization, unfriendly user interface, etc.

Inactive Publication Date: 2010-07-28
PEKING UNIV
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

But the FORTRAN program has its obvious shortcomings: the user interface is not friendly, and the visualization is poor
[0004] This strategy keeps the level of encapsulation at the language level, which has been improved in terms of visibility and ease of use. However, the FORTRAN legacy programs that are split and encapsulated according to this strategy can only be deployed on one machine. It can't re

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Communication method among distribution type FORTRAN modules
  • Communication method among distribution type FORTRAN modules
  • Communication method among distribution type FORTRAN modules

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0084] Below in conjunction with accompanying drawing and specific embodiment the present invention is described in further detail:

[0085] The weather simulator is written in FORTRAN language. In order to encapsulate it as a Web Service, we use the file method to transfer a large amount of global variable data. The specific steps are as follows:

[0086] 8.1 Encapsulate the weather simulator module into a Web Service, the specific steps are as follows:

[0087] 1) Write an adapter for the original meteorological simulator module in FORTRAN language, which is responsible for parsing the incoming global variable file and generating the output global variable file. The formats of the input and output files are defined in advance. The input global variable file includes two parts: the read geographical data file name and the corresponding file pointer, and the data of the global variable.

[0088] 2) Write an encapsulation program in C language, responsible for commun...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a communication method among distribution type FORTRAN modules, belonging to the technical field of software. The method comprises the following steps of: 1) sequentially packing FORTRAN modules distributed on each host computer by means of C language and Java language to generate a Web Service module which comprises an adapter; 2) generating a global variable document A which is transmitted to a host computer B through a host computer A, and communicating the host computer A with the host computer B through the Web Service module; 3) analyzing the document A through the adapter of the host computer B, and assigning value to a parameter; 4) executing operation to the adapter of the host computer B through the FORTRAN modules, and generating a global variable document B through the adapter; 5) transmitting the generated document B to the host computer A through the adapter of the host computer B; and 6) analyzing the document B through the adapter of the host computer A, assigning value to a parameter, and transmitting the parameter to the FORTRAN modules. The communication method greatly improves the reusability of a FORTRAN legacy program.

Description

technical field [0001] The invention relates to a communication method among distributed FORTRAN modules, belonging to the technical field of computer software. Background technique [0002] The FORTRAN language was born in the 1950s. Due to its simple grammatical structure, powerful scientific computing functions, especially its unique advantages in complex number operations, it is widely used in the fields of mathematics and engineering computing. Many early engineering application calculation programs and software were written in FORTRAN language. But the FORTRAN program has its obvious disadvantages: the user interface is not friendly and the visualization is poor. [0003] How to continue to use a large amount of FORTRAN legacy code and reduce waste; at the same time, how to make the application program have a friendly man-machine interface like C++, VB, Delphi? The general strategy is to use mixed language programming and encapsulate FORTRAN codes with C / C++, VB, and...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F9/46G06F9/54
Inventor 汪小林罗英伟邓浩王海波
Owner PEKING UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products