Problem 1240 - Text geometry input method no longer recognizes units
Summary: Text geometry input method no longer recognizes units
Status: RESOLVED FIXED
Alias: None
Product: Geant4
Classification: Unclassified
Component: persistency/ascii (show other problems)
Version: 9.4
Hardware: All All
: P5 minor
Assignee: Pedro.Arce
URL:
: 1259 (view as problem list)
Depends on:
Blocks:
 
Reported: 2011-08-06 22:51 CEST by PeterM
Modified: 2011-10-27 09:12 CEST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
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. ***