ychen38 / GEM0

A software for computer simulation of magnetically confined plasmas

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GEM - Software for kinetic simulation of magnetically confined fusion plasmas

The Direct directory contains source files for the split-weight control-variate mathod

The Hybrid directory contains source files for the gyrokinetic ion/fluid electron hybrid model

Good Software Engineering Guidelines:

1, Break long lines into short continued lines (with &)

2, No tabs. Use whitespaces.

3, All reals should be promoted by compiler; so, 'REAL(8)' in the code should just be 'real'

4, No old-style numbered "do/continue" loops. Use "do/end do" with no numbers or "continue" Old-style "character*70" should be changed to "character(len=70)"

5, "Return" is typically not needed in subroutines.

6, Subroutines should end with 'end subroutine myroutine', not just 'end'.

7, Try to convert all .f files to .f90 with free-format syntax

8, All declared variables should be used. Remove variables not needed anymore.

9, Always use "implicit none"

About

A software for computer simulation of magnetically confined plasmas


Languages

Language:Fortran 93.7%Language:C 3.5%Language:Prolog 1.4%Language:IDL 1.1%Language:Makefile 0.2%Language:Shell 0.0%