Giter Site home page Giter Site logo

cecam_tutorial_2017's Introduction

How to download the examples

Clone the github repository with:

$ git clone https://github.com/gmatteo/cecam_tutorial_2017

If you don't have git on your machine, install conda following the instructions reported in the next sections and then:

$ conda install git

Organization of the package:

common.h:

Include file providing CPP macros

m_core.F90:

Low-level modules with constants and helper functions used in the other examples.

Each example is contained in a separated directory. Each directory contains a main.F90 source code, a Makefile to compile it, a README.md file and, optionally, a python script to analyze the results.

To compile the examples, we will use the gcc compiler and other external libraries provided by conda. Follow the instructions reported in the next section to install conda on your machine.

Install conda

If you are a Linux user, download and install miniconda on your local machine with:

$ wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh
$ bash Miniconda2-latest-Linux-x86_64.sh

while for MacOSx use:

$ wget https://repo.continuum.io/miniconda/Miniconda2-latest-MacOSX-x86_64.sh
$ bash Miniconda2-latest-MacOSX-x86_64.sh

Answer yes to the question:

Do you wish the installer to prepend the Miniconda2 install location
to PATH in your /home/gmatteo/.bashrc ? [yes|no]
[no] >>> yes

Source your .bashrc file to activate the changes done by miniconda to your $PATH:

$ source ~/.bashrc

Add conda-forge to the conda channels:

$ conda config --add channels conda-forge

Create a new environment based on python2.7 with:

$ conda create -n myenv python=2.7

and activate the new env with:

source activate myenv

Install the gcc compiler:

$ conda install gcc

Use the command:

$ which gcc

to show the location of the gcc compiler.

Now we are ready to start but before proceeding with the examples we have to run:

$ make

in the top-level directory to compile a tiny library (libcore.a) we are gonna use in the different examples. After this step, we are ready for the the first example in the ex_doloops directory.

cecam_tutorial_2017's People

Contributors

gmatteo avatar

Watchers

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