Giter VIP home page Giter VIP logo

groundf / c06 Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 0.0 642 KB

Fortran: The introductory course, examples, and exercises. Originally written for personal needs, but may be useful for other people.

CMake 1.09% Python 10.55% Dockerfile 0.94% Batchfile 1.34% Fortran 85.32% C++ 0.76%
fortran lecture-notes examples array-manipulation array-oriented-language array-processing introduction-to-fortran modern-fortran numerical-methods programming-language fortran-tutorial

c06's Introduction

𝖋𝖔𝖗𝖙𝖗𝖆𝖓

Programming in Fortran from zero to hero.

language-Fortran

The introductory course, examples, and exercises in Fortran programming language. Originally written for personal needs but may be useful for other people.

β€œGOD IS REAL, unless declared INTEGER.”

This file is machine-generated. Please, don't edit manually.

  • The notes from lectures are in notes directory.
  • The codes based on lectures are in codes directory.
  • The codes created on practicals are located in codes/practicals directory.

Overview

  • Fortran programming basics
  • Fortran parallel programming & high performance programming
    • OMP
    • MPI
    • Clusters
  • Fortran numerical programming
    • BLAS
    • LAPACK

Build

At this moment, compile each example as

gfortran source/<file_name.f90> -o build/<file_name>

We are working on Make/CMake support.

To compile a module as an object use

gfortran -c path/to/module_name.f90 -o module_name

To compile program and link object as an executable use

gfortran path/to/program path/to/object -o program_name

Manage

We use Python 3.5+.

python manage.py index   # works
python manage.py clean   # works
python manage.py release # todo

Resources

Zen of Fortran

  • Fast is better than slow.
  • Slow is better than unmaintainable.
  • Array-oriented is better than object-oriented.
  • Make everything as simple as possible – but no simpler (Einstein).
  • Simplicity is robustness.
  • Make it look like the math.
  • All inputs and outputs explicit.
  • All inputs and outputs carefully named and clearly defined – the closer to the point of declaration the better.
  • Vector is better than loop.
  • Matrix is better than vector (unless it’s complicated).
  • Strided is better than scattered.
  • Contiguous is better than strided.
  • Broadcasting is a great idea – use where possible.

c06's People

Contributors

4e1e0603 avatar groundf-test avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

c06's Issues

add topic

I suggest adding the topic fortran-tutorial. There are several other repos with that topic.

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.