Problem 1240

Summary: Text geometry input method no longer recognizes units
Product: Geant4 Reporter: PeterM <petermardahl>
Component: persistency/asciiAssignee: Pedro.Arce
Status: RESOLVED FIXED    
Severity: minor CC: marinaldi
Priority: P5    
Version: 9.4   
Hardware: All   
OS: All   

Description PeterM 2011-08-06 22:51:46 CEST
Hello,

  This problem is very simple.  The text input for geometry no longer recognizes units.  For example, this USED to work:

:P WindowSize 0.5*m

for 1/2 meter.

Working around this problem is fairly easy.  One can just put everything in in mm.

:P WindowSize 500

Or do a global search and replace of "*m" to "*1000".


Best,

--PeterM
Comment 1 Pedro.Arce 2011-09-01 11:53:38 CEST
Just substitute 

       else if( !G4tgrUtils::WordIsUnit( word ) )

by 

       else if( G4tgrUtils::WordIsUnit( word ) )

in source/persistency/ascii/src/G4tgrUtils.cc
Comment 2 Gabriele Cosmo 2011-10-27 09:12:23 CEST
*** Problem 1259 has been marked as a duplicate of this problem. ***