Giter Club home page Giter Club logo

iron-magma's Introduction

iron-magma

Model for prediction of iron redox in magmatic liquids

Copyright Roberto Moretti (2005)

Citation

Licence

MIT licence, see Licence file.

Contributors

Roberto Moretti (IPGP), [email protected]

Charles Le Losq (IPGP), [email protected]

Dependencies

A working fortran compiler. We suggest using gfortran, tested on Mac and Linux. It works well with this software!

How to use

Download the repository, and use the provided example input file. It first requires compilation of the FORTRAN source, then running the compilated software.

Compilation

To create the program, with gfortran, in the terminal on Linux or MacOS:

$ gfortran iron2.for -o iron2.o

Running the software

The software takes an input file, iron2.in, which contains the compositions of interest.

It returns an output file, iron2.RDX

Run in the terminal, after compilation, run the command:

$ ./iron2.o

Input file: INPUT.txt

This is a text files, where values are separated by commas.

First line: enters the number of lines to process, leave other columns empty.

then subsequent lines, enter your composition and conditions in the order

SiO2, TiO2, Al2O3, Fe2O3, Cr2O3, FeO, Mno, MgO, CaO, Na2O, K2O, P2O5, H2O, T°C, Pbar, logfO2, INTEGER, FLAG,

oxides are wt% (normalization done internally)

INTEGER: whatever you want, leave 1

FLAG: 0 or 2; if O takes logfO2 and calculates FeO and Fe2O3; if 2 takes FeO and Fe2O3 and calculates logfO2

Results: OUTPUT.txt

Results are outputed in the file OUTPUT.txt. Everything is self explanatory in this file, with a header.

iron-magma's People

Contributors

charlesll avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

xshaeeee

iron-magma's Issues

Potential problem with NULL output file on MacOS 12

On MacOS 12, users have reported that the OUPUT.TXT file can be empty. This issue seems related to the gfortran compiler, and potentially to a change of its path when upgrading MacOS to the Monterey version.

A work-around is to install gcc@9 and gcc@11 with homebrew, and to link the two versions.

Thanks to Li Zhang, assistant professor from University of Science and Technology of China, for the report and work-around!

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.