[Gate-users] Problem with setMaterialDatabase in Jobsplitter

Martín Belzunce martin.sure at gmail.com
Mon Apr 5 15:38:43 CEST 2010


Hi gate users,
In gate 6.0 I had problems with setMaterialDatabase command when using
the jobsplitter. If I defined the GateMaterials.db with a full path,
the jobsplitter would mess up the path of the file with the current
path of the .mac

For example, if in my .mac I had:
/gate/geometry/setMaterialDatabase    /usr/src/gate_v6.0.0/GateMaterials.db

In the splitted version, I got:
/gate/geometry/setMaterialDatabase
/myGateSources/Simulation1//usr/src/gate_v6.0.0/GateMaterials.db

where /myGateSources/Simulation1/ was the original path of my .mac file.

This made to abort the simulation when running the splitted version
because Gate couldn't find the GateMaterials.db.

I solved this modifying GateMacfileParser.cc in line 825. I attached
the modified file, in case is useful for someone else.

Regards
Martín Belzunce
-------------- next part --------------
A non-text attachment was scrubbed...
Name: GateMacfileParser.cc
Type: text/x-c++src
Size: 39522 bytes
Desc: not available
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20100405/f25b727e/attachment-0001.cc>


More information about the Gate-users mailing list