Utilities: Difference between revisions

From openpipeflow.org
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:


Utilities are kept in <tt>utils/</tt>
* Almost all changes can/should be made via a utility, '''rather than altering the core code''' in the <tt>program/</tt> directory.
* Utilities are kept in <tt>utils/</tt>


To build, in <tt>Makefile</tt>, set <tt>UTIL = utilname</tt> (omitting the <tt>.f90</tt> extension), then type <tt>'make util'</tt> which builds <tt>utilname.out</tt>.   
=== Building ===
To build, in <tt>Makefile</tt>, set <tt>UTIL = utilname</tt> (omitting the <tt>.f90</tt> extension), then type  
> make
> make install
> make util
The last command creates <tt>utilname.out</tt>.   


It is good practice to do a <tt>'make install'</tt> to generate a [[main.info]] file to keep alongside the executable.
It is good practice to do a <tt>'make install'</tt> to generate a [[main.info]] file to keep alongside the executable.

Revision as of 01:01, 15 August 2014

  • Almost all changes can/should be made via a utility, rather than altering the core code in the program/ directory.
  • Utilities are kept in utils/

Building

To build, in Makefile, set UTIL = utilname (omitting the .f90 extension), then type

> make
> make install
> make util

The last command creates utilname.out.

It is good practice to do a 'make install' to generate a main.info file to keep alongside the executable.

Pre/post-processing

Runtime processing

Non-problem-specific codes