COOLFluiD  Release kernel
COOLFluiD is a Collaborative Simulation Environment (CSE) focused on complex MultiPhysics simulations.
utest-python-basics.py
Go to the documentation of this file.
1 from coolfluid import *
2 
3 root = Core.root()
4 env = Core.environment()
5 
6 env.options().set('assertion_backtrace', False)
7 env.options().set('exception_backtrace', False)
8 env.options().set('regist_signal_handlers', False)
9 env.options().set('exception_log_level', 0)
10 env.options().set('log_level', 4)
11 env.options().set('exception_outputs', False)
12 
13 cf_check(env.log_level == 4,'Failed to set the log level at 4')
14 #print env.options().value_str('log_level')
15 
16 journal = root.create_component("journal", "cf3.common.Journal")
17 cf_check(journal.options.RecordReplies == False,'RecordReplies of the journal is not false')
18 #print journal.options().value_str("RecordReplies")
19 
20 
21 group = root.create_component("group", "cf3.common.Group")
22 before_move = journal.uri()
23 #print "Before move",journal.uri()
24 journal.move_component(group.uri())
25 after_move = journal.uri()
26 #print "After move",journal.uri()
27 cf_check(before_move != after_move,'Failed to move the component')
28 
29 action_director = root.create_component('director', 'cf3.common.ActionDirector')
30 action_director.options().set('disabled_actions', ['a', 'b', 'c'])
31 
32 cf_check(root.derived_type_name() == 'cf3.common.Group','Derived type name of Root is not equal to \'cf3.common.Group\'')
33 #print root.derived_type_name()
def cf_check(test)
Definition: check.py:1
Send comments to:
COOLFluiD Web Admin