Giter VIP home page Giter VIP logo

f90_port's Introduction

f90_port

Creates a genserver able to talk to an external Fortran server

How to build

Use make to compile the project.

To build each step manually, run:

	gfortran *.f90 -o newton
	erlc *.erl

How to run

Run erl to start the Erlang session. In the Erlang shell, you can start the f90 genserver by using the compiled program name, and execute commands in the genserver API:

    Eshell V13.1.2  (abort with ^G)
    1> f90:start_link("./newton").
    {ok,<0.84.0>}
    2> f90:force(90,80).
    7200 

How it works

The genserver creates a port to the external program. A port is an erlang process that manages and communicates with external programs.

The Fortran program expects inputs from stdin (which are provided by the port), such as:

  • mass [value]: stores the value in the mass variable
  • accel [value]: stores the value in the accel variable
  • return: exits the loop and proceeds to the next step

f90_port's People

Contributors

escribapetrus avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.