GithubHelp home page GithubHelp logo

pritha55 / do3se-photosynthesis-model Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sbland/fortran_environment

0.0 0.0 0.0 293 KB

This is a temporary repository for experimenting with photosynthesis model. Do not use this for developing the model!

License: MIT License

Fortran 98.68% Python 1.32%

do3se-photosynthesis-model's Introduction

fortran_environment

A base setup for a fortran environment with compiler, testing etc

Info

WAF Build Tool

The Fortran code is built using the Waf_ build tool. This requires Python 2.5 or newer (including 3.x) to be available. If any errors with waf check if update needed (See troubleshooting at bottom).

Environment Setup (DOCKER)

You will need docker in order to create a virtual environment to run the fortran model

Windows

https://docs.docker.com/docker-for-windows/

Ubuntu

https://docs.docker.com/install/linux/docker-ce/ubuntu/

Build and Run

Build

Replace 'fortran_environment' with the name of your model

docker build . -t fortran_environment

Run

Note can add args like 'abc' in example below

docker run -it fortran_environment ./build/run_model abc

Environment Setup (MANUAL)

This is the instructions for running without docker on windows

Dependencies

  • MinGW - http://www.mingw.org/wiki/Getting_Started
    • Needs specific compilers?
    • assuming your directory for MinGW is the default "C:\MinGW", setup your PATH environment variable to include "C:\MinGW\bin" && "C:\MinGW\msys\1.0\bin"
    • Check this is working by opening cmd or powershell and typing "make -h". This should give you some options for the make command
  • Git For windows - https://git-scm.com/download/win
    • This provides access to git bash
  • Python 2.7 - https://www.python.org/downloads/release/python-2717/
    • Add python to your environment variables "C:/Python27". Make sure to rename python.exe to python2.exe
    • Add pip to your environment variables "C:/Python27/Scripts"
  • Python Virtual Env - Install python2 virtual env python2 -m pip install --user virtualenv

Note: Ensure you reopen command panels after editing PATH Vars

Setup

  1. From git bash Create the python virtual environment python2 -m virtualenv venv and activate . ./venv/scripts/activate. When Activated you should now have (venv) at the start of the current path in the command line

Test run

  1. With the environment activated run python waf configure followed by python waf build
  2. You should now have a run_model.exe file in the build folder. Run this in bash/cmd and you should see hello world as a response

do3se-photosynthesis-model's People

Contributors

sbland 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.