[Getdp] Parse Error in "MagSta_hs_js0.pro" file from MaghetoDunamics example

Christophe Geuzaine cag32 at case.edu
Thu Aug 24 02:37:35 CEST 2006


Indeed, we've removed the "multi-group" feature in new versions of 
GetDP. You should use "For/EndFor" loops instead.


Andrew Isaverdian wrote:
> I remember I could run that example OK with previous version of GetDP.
> 
>  
> 
> Now, with GetDP 1.2.1, I get
> 
>  
> 
> GetDP   : Error ('C:/GetDP/MagSta_hs_js0.pro' line 57): parse error on '{'
> 
>  
> 
> That happens first in the following fragment:
> 
>  
> 
> Group {
> 
>   DefineVariable[ Nbr_DomainB = 1] ;
> 
>   DefineGroup[ DomainB_Mag{Nbr_DomainB}, SkinDomainB_Mag{Nbr_DomainB},
> 
>                SurfaceCutB_Mag{Nbr_DomainB},
> 
>                SkinDomainB2_Mag{Nbr_DomainB}, DomainCC2_Mag{Nbr_DomainB},
> 
>                SurfaceGh0, Domain_Mag] ;
> 
> }
> 
>  
> 
>  
> 
> /* 
> --------------------------------------------------------------------------*/
> 
>  
> 
> Group {
> 
>   SkinDomainBtot_Mag{#Nbr_DomainB} = Region[ {SkinDomainB_Mag{}, 
> SurfaceGh0} ] ; // ß------------ Here is the parsing Error (and further 
> down)
> 
>   DomainCCmB_Mag{#Nbr_DomainB} = Region[ {DomainCC2_Mag{}, 
> -DomainB_Mag{}} ] ;
> 
> }
> 
>  
> 
> Group {
> 
>   _TransitionLayer_SkinDomainB{#Nbr_DomainB} =
> 
>     ElementsOf[SkinDomainB2_Mag{}, OnOneSideOf SurfaceCutB_Mag{}] ;
> 
> }
> 
>  
> 
> If I get rid of all {} brackets in the file, then it the parser comes 
> with “Error: Magnetostatics_hs{1} is not defined …”
> 
>  
> 
> If that is a problem with older syntax, then what is a correct one?
> 
> I’m attaching *.pro files just in case.
> 
>  
> 
>  
> 
> With Regards,
> 
>  
> 
> Andrew Isaverdian
> 
> Sr. Test Engineer
> 
> Varian Medical Systems
> 
> (650) 424-6127
> 
> andrew.isaverdian at us.varian.com
> 
>  
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> getdp mailing list
> getdp at geuz.org
> http://www.geuz.org/mailman/listinfo/getdp


-- 
Christophe Geuzaine
Assistant Professor, Case Western Reserve University, Mathematics
http://www.case.edu/artsci/math/geuzaine