COOLFluiD  Release kernel
COOLFluiD is a Collaborative Simulation Environment (CSE) focused on complex MultiPhysics simulations.
Functions
check Namespace Reference

Functions

def cf_check (test)
 
def cf_check (test, message)
 
def cf_check_close (a, b, close)
 
def cf_check_close (a, b, close, message)
 
def cf_check_equal (a, b)
 
def cf_check_equal (a, b, message)
 
def cf_error ()
 
def cf_error (message)
 

Function Documentation

def check.cf_check (   test)
if the first argument is False it raise an exception with a default message, you can specify the message in the second argument (optional)

Definition at line 1 of file check.py.

def check.cf_check (   test,
  message 
)

Definition at line 6 of file check.py.

def check.cf_check_close (   a,
  b,
  close 
)
if the absolute difference between the two firsts argument is smaller then the third argument it raise an exception with a default message, you can specify the message in the fourth argument (optional)

Definition at line 10 of file check.py.

def check.cf_check_close (   a,
  b,
  close,
  message 
)

Definition at line 15 of file check.py.

def check.cf_check_equal (   a,
  b 
)
if the two firsts arguments are not equal it raise an exception with a default message, you can specify the message in the third argumnt (optional)

Definition at line 19 of file check.py.

def check.cf_check_equal (   a,
  b,
  message 
)

Definition at line 24 of file check.py.

def check.cf_error ( )
raise an exception with a default message, tou can specify the message in the first argument (optional)

Definition at line 28 of file check.py.

def check.cf_error (   message)

Definition at line 32 of file check.py.

Send comments to:
COOLFluiD Web Admin