16.08.2013 Views

Introduction to Code_Saturne - Working with subroutines

Introduction to Code_Saturne - Working with subroutines

Introduction to Code_Saturne - Working with subroutines

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Important points <strong>to</strong> take in<strong>to</strong> account:<br />

Structure<br />

<strong>Code</strong> <strong>Saturne</strong> is in double precision. Declare your variables as<br />

DP (and assign values as 1.D0).<br />

Due <strong>to</strong> his<strong>to</strong>ric reasons, the names of the <strong>subroutines</strong> always<br />

have 6 letters.<br />

Most integer variables start <strong>with</strong> “i”, i.e. idebia.<br />

Variable names are also maximum 6 characters long (legacy<br />

from FORTRAN77).<br />

Compilation not only of user <strong>subroutines</strong> but ANY f90 or c file<br />

in SRC (this could include <strong>Code</strong> <strong>Saturne</strong> original source<br />

routines).<br />

J. Uribe (University of Manchester) <strong>Introduction</strong> <strong>to</strong> <strong>Code</strong> <strong>Saturne</strong> 8 / 15

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!