Changeset 2738


Ignore:
Timestamp:
Apr 20, 2006, 4:59:53 PM (19 years ago)
Author:
jack
Message:

Unit test for the parallel shallow water domain, compared to the sequential shallow water domain.

Location:
inundation
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • inundation/parallel/run_parallel_sw_merimbula_metis.py

    r2654 r2738  
    203203domain.set_quantity('elevation', quantities['elevation'])
    204204
    205 #domain.store = True
     205domain.store = False
    206206#domain.filename = 'merimbula-%d' %domain.processor
    207207
  • inundation/utilities/util_ext.c

    r2510 r2738  
    1313//this will also work on 32 bit systems
    1414
     15#include <float.h>
    1516
    1617#include "Python.h"
     
    6869}
    6970
     71PyObject * double_precision(PyObject * self, PyObject * args){
     72  // Get the precision of the double datatype on this system.
     73  return Py_BuildValue("i", DBL_DIG);
     74}
     75
    7076// Method table for python module
    7177static struct PyMethodDef MethodTable[] = {
     
    7884  {"gradient", gradient, METH_VARARGS, "Print out"},
    7985  {"gradient2", gradient2, METH_VARARGS, "Print out"}, 
     86  {"double_precision", double_precision, METH_VARARGS, "Precision of this machine\'s \'double\' type"},
    8087  {NULL, NULL, 0, NULL}   /* sentinel */
    8188};
Note: See TracChangeset for help on using the changeset viewer.