Message: Re: maximum size of GDML file Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

More Re: maximum size of GDML file 

Forum: Geometry
Re: Question maximum size of GDML file (Svetlana Shasharina)
Re: More Re: maximum size of GDML file (Gabriele Cosmo)
Re: None Re: maximum size of GDML file (Svetlana Shasharina)
Date: 07 Sep, 2017
From: Gabriele Cosmo <Gabriele Cosmo>

Hi Svetlana,

try to modify the DOM map code in XercesC with this at line DOMNodeIDMap.cpp:33:
    static const XMLSize_t gPrimes[] = {997, 9973, 99991, 999983, 9999991, 99999989, 0 }; 
and reinstall XercesC.

Cheers, Gabriele

-------------
On Wed, 06 Sep 2017 17:13:40 GMT, Svetlana G. Shasharina wrote:
> Hi Gabriele,
> 
> Yes, I ran into this XeresC limit and recompiled it by adding the next 
> prime number to the limits as follows:
> 
> diff -ruN xercesc-3.1.1 xercesc-3.1.1.new/
> diff -ruN xercesc-3.1.1/src/xercesc/dom/impl/DOMNodeIDMap.cpp 
> xercesc-3.1.1.new/src/xercesc/dom/impl/DOMNodeIDMap.cpp
> --- xercesc-3.1.1/src/xercesc/dom/impl/DOMNodeIDMap.cpp 2008-07-19 
> 06:08:55.000000000 -0600
> +++ xercesc-3.1.1.new/src/xercesc/dom/impl/DOMNodeIDMap.cpp 2017-09-05 
> 12:54:46.000000000 -0600
> @@ -30,7 +30,7 @@
>   XERCES_CPP_NAMESPACE_BEGIN
> 
> -static const XMLSize_t gPrimes[] = {997, 9973, 99991, 999983, 0 };  // 
> To do - add a few more.
> +static const XMLSize_t gPrimes[] = {997, 9973, 99991, 999983, 99999989, 
> 0 };  // To do - add a few more.
> 
>   static const float gMaxFill = 0.8f;   // The maximum fraction of the total
>                                       // table entries to consume before 
> exanding.
> 
>   Still could not validate the gdml.  I will try to add one more limit?
> 
> Thanks,
> 
> Sveta

 Add Message Add Message
to: "Re: maximum size of GDML file"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]