Hi,
I tried to run my driven script in parallel mode so I could study and development the parallel part of SOLVCON.
By reading the source code and the other driven script examples,
I suppose I could enable the parallel mode by passing a special attribute "domaintype" when creating simulation case.
For example, something like:
@gas.register_arrangement
def tube(casename, **kw):
from solvcon.domain import Collective
return tube_base(
# Required positional argument for the name of the simulation case.
casename,
domaintype=Collective,
# Arguments to the base configuration.
gamma=1.4,
ssteps=200, psteps=4, edgelength=0.02,
rho1=1.0, p1=1.0,
rho2=0.125, p2=0.1,
# Arguments to GasCase.
time_increment=7.e-4, steps_run=600, **kw)
but I was complained by SOLVCON when run this driven script:
Traceback (most recent call last):
File "./go", line 254, in <module>
sc.go()
File "/home/tai271828/work-my-projects/solvcon/solvcon.installed/solvcon/cmdutil.py", line 187, in go
cmd()
File "/home/tai271828/work-my-projects/solvcon/solvcon.installed/solvcon/command.py", line 1091, in __call__
func(submit=False, **funckw)
File "/home/tai271828/work-my-projects/solvcon/solvcon.installed/solvcon/case.py", line 1077, in simu
cse = func(*args, **kw)
File "./go", line 250, in tube
time_increment=7.e-4, steps_run=600, **kw)
TypeError: tube_base() got multiple values for keyword argument 'domaintype'
Questions:
1. where the argument 'domaintype' was given is the correct location?
2. was I in the right way to enable the parallel mode?
Thanks.
Cheers,
Taihsiang