Skip to content

jobsplitter with integer time values multiplies them by 10 #536

@villekf

Description

@villekf

Currently jobsplitter seems to multiply integer time values set setTimeSlice, setTimeStart and setTimeStop by 10 in the virtual versions because of this line and the other similar ones later on. Commenting that and the subsequent same conditionals give correct virtual times.

Desktop:

  • OS: Ubuntu 22.04
  • Gate version or commit hash: aeee4a9
  • Geant4 version: 11.0.1
  • Root version: 6.26.02
  • compiler version: gcc 11.2.0

Minimal example:

/gate/application/setTimeSlice   1800 s
/gate/application/setTimeStart   0 s
/gate/application/setTimeStop    1800 s

Expected behavior:
The virtual startTime and stopTimes should be inside the specified setTimeStart and setTimeStop. Currently, with the above example and 18 nSplits, the .split-file has the following virtual times in the last one:

Timeslice is: 1800 s
Start time is: 0 s
Stop time is: 1800 s
Virtual startTime: 17000 s
Virtual stopTime: 18000 s

Additional context
If the dot is added to the above commands, i.e.

/gate/application/setTimeSlice   1800. s
/gate/application/setTimeStart   0. s
/gate/application/setTimeStop    1800. s

the virtual times are as expected. Why is the zero added in case of missing dot?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions