~fluidity-core/fluidity/ocean_forcing

Viewing all changes in revision 3561.

  • Committer: Patrick Farrell
  • Date: 2011-08-15 09:43:30 UTC
  • mfrom: (3541.2.9 diagnostic-python-spud)
  • Revision ID: patrick.farrell06@imperial.ac.uk-20110815094330-a01flj39wfort97a
This branch contains the features that let the embedded python interpreter in fluidity access the spud dictionary of fluidity's options.

Use it as follows:

import libspud
libspud.get_option("/simulation_name")

It only works for Python >= 2.7, so if you want your code to work on 2.6 or before, you need to guard with an

if sys.version_info[1] > 6

This branch also contains some minor fixes for compiling fluidity against; sometimes things were using the system one, and sometimes things were using the libspud/ directory.

This branch also updates libspud/ to be the latest spud trunk. Those changes have been reviewed earlier in other merge requests.

A lot of the work on this was done by Nan Mao.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: