Skip to content

Problem with master branch #147

@abaillod

Description

@abaillod

Hello,

I have a problem running the master branch. When running the latest version of the master branch on this simple, circular tokamak input file: Input_0.txt, I get the following output

abaillod@spcpc602:~/Physics/BetaScan/QuasiAxiSymmetric/Nfp2/FixedBoundary_Nvol2/TokamakSequence> ~/SPEC/xspec Input_0.sp             
xspech :            : version =  3.10
       :  compiled  : date    = Thu May 27 10:35:50 CEST 2021 ; 
       :            : srcdir  = /home/abaillod/SPEC ; 
       :            : macros  = macros ; 
       :            : fc      = mpif90 ; 
       :            : flags   =  -r8 -DIFORT -O2 -ip -no-prec-div -xHost -fPIC -
 DOPENMP -fopenmp ; 
xspech :            : 
xspech :       0.00 : date=2021/05/27 , 10:38:14 ; machine precision= 1.11E-16 ; vsmall= 1.11E-14 ; small= 1.11E-12 ;
xspech :            : 
xspech :       0.00 : parallelism : ncpu=  1 ; nthreads= 12 ;
rdcmdl :            : 
rdcmdl :       0.00 : ext = Input_0                                                                                             
xspech :            : 
xspech :       0.00 : begin execution ; calling global:readin ;
readin :            : 
readin :       0.00 : Igeometry=  3 ; Istellsym=  1 ; Lreflect=  0 ;
readin :            : Lfreebound=  0 ; phiedge=  1.000000000000000E+00 ; curtor=  0.000000000000000E+00 ; curpol=  0.000000000000000E+00 ;
readin :            : gamma=  0.000000000000000E+00 ;
readin :            : Nfp=  2 ; Nvol=  2 ; Mvol=  2 ; Mpol=  8 ; Ntor=  6 ;
readin :            : pscale=  1.00000E+00 ; Ladiabatic= 0 ; Lconstraint=  0 ; mupf: tol,its=  1.00E-12 ,1024 ;
readin :            : Lrad = 12, 8,
readin :            : 
readin :       0.00 : Linitialize=  1 ;LautoinitBn=  1 ; Lzerovac= 0 ; Ndiscrete= 2 ;
readin :            : Nquad=  -1 ; iMpol=  -4 ; iNtor=  -4 ;
readin :            : Lsparse= 0 ; Lsvdiota= 0 ; imethod= 3 ; iorder= 2 ; iprecon= 1 ; iotatol= -1.00000E+00 ;
readin :            : Lextrap= 0 ; Mregular= -1 ; Lrzaxis= 2 ; Ntoraxis=12 ;
readin :            : 
readin :       0.00 : LBeltrami= 4 ; Linitgues= 1 ; Lmatsolver= 1 ; LGMRESprec= 1 ; NiterGMRES= 200 ; epsGMRES=  1.00000E-14 ; epsILU=  1.00000E-12 ;
readin :            : 
readin :       0.00 : Lfindzero= 2 ;
readin :            : escale=  0.00000E+00 ; opsilon=  1.00000E+00 ; pcondense=  4.000 ; epsilon=  1.00000E+00 ; wpoloidal= 1.0000 ; upsilon=  1.00000E+00 ;
readin :            : forcetol=  1.00000E-12 ; c05xmax=  1.00000E-06 ; c05xtol=  1.00000E-12 ; c05factor=  1.00000E-04 ; LreadGF= F ; 
readin :            : mfreeits=   0 ; gBntol=  1.00000E-06 ; gBnbld=  6.66000E-01 ;
readin :            : vcasingeps=  1.00000E-12 ; vcasingtol=  1.00000E-08 ; vcasingits=     8 ; vcasingper=     1 ;
readin :            : 
readin :       0.00 : odetol=  1.00E-07 ; nPpts=   500 ;
readin :            : LHevalues= F ; LHevectors= F ; LHmatrix= F ; Lperturbed= 0 ; dpp= -1 ; dqq= -1 ; dRZ=  1.00000000E-05 ; Lcheck=  0 ; Ltiming= F ;
readin :            : 
readin :            : myid=  0 ; Rscale= 1.013889315431735E+00 ;
preset :            : myid=  0 ; Mrad= 12 : Lrad= 12,  8,
preset :       0.00 : LBsequad= F , LBnewton= F , LBlinear= T ;
preset :            : 
preset :       0.00 : Nquad=  -1 ; mn=  111 ; NGdof=   221 ; NAdof=  1223,  1888,
preset :            : 
preset :       0.00 : Nt=    64 ; Nz=    48 ; Ntz=     3072 ;
newton :       0.38 :         0  0 ; |f|= 3.65065E-03 ; time=      0.35s ; log|BB|e= -3.19
newton :            :              ;                                     ; log|II|o= -4.13
fcn2   :       4.70 :         1  1 ; |f|= 3.65065E-03 ; time=      4.68s ; log|BB|e= -3.19
fcn2   :            :              ;                                     ; log|II|o= -4.13
fcn2   :       5.06 :         2  1 ; |f|= 7.68354E+06 ; time=      0.36s ; log|BB|e= -2.18
fcn2   :            :              ;                                     ; log|II|o=  6.10
newton :            :
newton :       5.07 : finished ; success        ; ic05p*f= 1 ; its=      2 ,   1 ;
xspech :       5.42 : #freeits=  0 ; |f|= 3.65065E-03 ; time=      0.35s ; log|BB|e= -3.19
xspech :            :              ;                                     ; log|II|o= -4.13

While when I use the version 3.0 of SPEC, I get good convergence, i.e.

abaillod@spcpc602:~/Physics/BetaScan/QuasiAxiSymmetric/Nfp2/FixedBoundary_Nvol2/TokamakSequence> ~/SPEC/xspec_3.0 Input_0.sp
xspech :            : version =  3.00
       :  compiled  : date    = Thu May 27 10:32:18 CEST 2021 ; 
       :            : srcdir  = /home/abaillod/SPEC ; 
       :            : macros  = macros ; 
       :            : fc      = mpif90 ; 
       :            : flags   =  -r8 -O2 -ip -no-prec-div -xHost -fPIC -DOPENMP 
 -fopenmp ; 
xspech :            : 
xspech :       0.00 : begin execution ; ncpu=  1 ; calling global:readin ;
readin :            : 
readin :       0.00 : date=2021/05/27 , 10:39:14 ; machine precision= 1.11E-16 ; vsmall= 1.11E-14 ; small= 1.11E-12 ;
readin :            : 
readin :       0.00 : ext = Input_0                                                                                             
readin :            : 
readin :            : 
readin :       0.00 : Igeometry=  3 ; Istellsym=  1 ; Lreflect=  0 ;
readin :            : Lfreebound=  0 ; phiedge=  1.000000000000000E+00 ; curtor=  0.000000000000000E+00 ; curpol=  0.000000000000000E+00 ;
readin :            : gamma=  0.000000000000000E+00 ;
readin :            : Nfp=  2 ; Nvol=  2 ; Mvol=  2 ; Mpol=  8 ; Ntor=  6 ;
readin :            : pscale=  1.00000E+00 ; Ladiabatic= 0 ; Lconstraint=  0 ; mupf: tol,its=  1.00E-12 ,1024 ;
readin :            : Lrad = 12, 8,
readin :            : 
readin :       0.00 : Linitialize=  1 ;LautoinitBn=  1 ; Lzerovac= 0 ; Ndiscrete= 2 ;
readin :            : Nquad=  -1 ; iMpol=  -4 ; iNtor=  -4 ;
readin :            : Lsparse= 0 ; Lsvdiota= 0 ; imethod= 3 ; iorder= 2 ; iprecon= 1 ; iotatol= -1.00000E+00 ;
readin :            : Lextrap= 0 ; Mregular= -1 ; Lrzaxis= 2 ; Ntoraxis=12 ;
readin :            : 
readin :       0.00 : LBeltrami= 4 ; Linitgues= 1 ; Lmatsolver= 1 ; LGMRESprec= 1 ; NiterGMRES= 200 ; epsGMRES=  1.00000E-14 ; epsILU=  1.00000E-12 ;
readin :            : 
readin :       0.00 : Lfindzero= 2 ;
readin :            : escale=  0.00000E+00 ; opsilon=  1.00000E+00 ; pcondense=  4.000 ; epsilon=  1.00000E+00 ; wpoloidal= 1.0000 ; upsilon=  1.00000E+00 ;
readin :            : forcetol=  1.00000E-12 ; c05xmax=  1.00000E-06 ; c05xtol=  1.00000E-12 ; c05factor=  1.00000E-04 ; LreadGF= F ; 
readin :            : mfreeits=   0 ; gBntol=  1.00000E-06 ; gBnbld=  6.66000E-01 ;
readin :            : vcasingeps=  1.00000E-12 ; vcasingtol=  1.00000E-08 ; vcasingits=     8 ; vcasingper=     1 ;
readin :            : 
readin :       0.00 : odetol=  1.00E-07 ; nPpts=   500 ;
readin :            : LHevalues= F ; LHevectors= F ; LHmatrix= F ; Lperturbed= 0 ; dpp= -1 ; dqq= -1 ; dRZ=  1.00000000E-05 ; Lcheck=  0 ; Ltiming= F ;
readin :            : 
readin :            : myid=  0 ; Rscale= 1.013889315431735E+00 ;
preset :            : myid=  0 ; Mrad= 12 : Lrad= 12,  8,
preset :       0.00 : LBsequad= F , LBnewton= F , LBlinear= T ;
preset :            : 
preset :       0.00 : Nquad=  -1 ; mn=  111 ; NGdof=   221 ; NAdof=  1223,  1888,
preset :            : 
preset :       0.00 : Nt=    64 ; Nz=    48 ; Ntz=     3072 ;
newton :       0.37 :         0  0 ; |f|= 3.65065E-03 ; time=      0.35s ; log|BB|e= -3.19
newton :            :              ;                                     ; log|II|o= -4.13
fcn2   :       4.44 :         1  1 ; |f|= 3.65065E-03 ; time=      4.41s ; log|BB|e= -3.19
fcn2   :            :              ;                                     ; log|II|o= -4.13
fcn2   :       4.79 :         2  1 ; |f|= 3.22715E-03 ; time=      0.35s ; log|BB|e= -3.25
fcn2   :            :              ;                                     ; log|II|o= -4.13
fcn2   :       5.15 :         3  1 ; |f|= 3.06683E-03 ; time=      0.36s ; log|BB|e= -3.24
fcn2   :            :              ;                                     ; log|II|o= -4.19
fcn2   :       5.50 :         4  1 ; |f|= 2.91540E-03 ; time=      0.35s ; log|BB|e= -3.22
fcn2   :            :              ;                                     ; log|II|o= -4.24
fcn2   :       5.85 :         5  1 ; |f|= 2.46889E-03 ; time=      0.35s ; log|BB|e= -3.33
fcn2   :            :              ;                                     ; log|II|o= -4.31
fcn2   :       6.20 :         6  1 ; |f|= 1.67566E-03 ; time=      0.35s ; log|BB|e= -3.55
fcn2   :            :              ;                                     ; log|II|o= -4.49
fcn2   :       6.55 :         7  1 ; |f|= 6.65231E-05 ; time=      0.35s ; log|BB|e= -4.86
fcn2   :            :              ;                                     ; log|II|o= -6.01
fcn2   :       6.91 :         8  1 ; |f|= 2.01360E-05 ; time=      0.35s ; log|BB|e= -5.42
fcn2   :            :              ;                                     ; log|II|o= -7.10
fcn2   :       7.26 :         9  1 ; |f|= 1.50378E-06 ; time=      0.35s ; log|BB|e= -6.54
fcn2   :            :              ;                                     ; log|II|o= -8.08
fcn2   :       7.61 :        10  1 ; |f|= 2.17590E-08 ; time=      0.35s ; log|BB|e= -8.32
fcn2   :            :              ;                                     ; log|II|o= -9.84
fcn2   :       7.96 :        11  1 ; |f|= 1.15298E-09 ; time=      0.36s ; log|BB|e= -9.54
fcn2   :            :              ;                                     ; log|II|o=-11.04
fcn2   :       8.31 :        12  1 ; |f|= 2.72113E-10 ; time=      0.35s ; log|BB|e=-10.28
fcn2   :            :              ;                                     ; log|II|o=-11.91
fcn2   :       8.66 :        13  1 ; |f|= 1.34764E-11 ; time=      0.35s ; log|BB|e=-11.58
fcn2   :            :              ;                                     ; log|II|o=-13.14
fcn2   :       9.01 :        14  1 ; |f|= 2.52154E-12 ; time=      0.35s ; log|BB|e=-12.31
fcn2   :            :              ;                                     ; log|II|o=-13.84
fcn2   :       9.36 :        15  1 ; |f|= 2.19319E-14 ; time=      0.35s ; log|BB|e=-14.23
fcn2   :            :              ;                                     ; log|II|o=-15.99
fcn2   :       9.71 :        16  1 ; |f|= 4.64724E-15 ; time=      0.35s ; log|BB|e=-14.58
fcn2   :            :              ;                                     ; log|II|o=-16.38
newton :            :
newton :       9.72 : finished ; success        ; ic05p*f= 1 ; its=     16 ,   1 ;
xspech :      10.07 : #freeits=  0 ; |f|= 4.64516E-15 ; time=      0.35s ; log|BB|e=-14.58
xspech :            :              ;                                     ; log|II|o=-16.39

Let me also mention that this is a comparison between version 3.0 and the latest version of the master branch - I did

git fetch
git pull origin master
make clean
make BUILD_ENV=intel_spc -j

The same problem appears when running with the branch update_makefile.

I don't know what is causing the problem. This might be due to some compilation issue, since I have been struggling with compilation on my machine for a few weeks. Could somebody try to replicate the problem?

Thanks!

Metadata

Metadata

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