Supported ARPACK-NG or unsupported old ARPACK? What is better?

Perhaps an improvement in comparison to old unsupported ARPACK.
Coupling to this supported lib is possible with own compile.

You should be able to use either.

I’ve manually looked through the changes in the core ARPACK code between the last release from Rice University I had around and ARPACK-ng a while ago and there is nothing changed that should prevent you from using ARPACK-ng with CalculiX. I don’t know what Guido uses for the binaries distributed through his website but I would assume he has an existing static build using the sources from Rice University which he builds CCX against.

1 Like

I took a look at the project open issues up to now. This one still seems to be present in ng version. Attached the inp for reference.

Requesting 1 mode, ccx gives result 3.17Hz.

Requesting 2 or 3 modes, ccx terminates without any result or warnning.

Request 4 or more delivers all four modes but :

*ERROR in d[n,s]aupd: info=-9999 # of converged eigenvalues=5.

*NODE
1,0,0,0
2,0,0,0.8660254037844
3,0,0,0.8660254037844
4,0,0,-0.8660254037844
5,0.5,0,0.8660254037844
6,0,0,1.732050807569
7,0,0,0.8660254037844
8,-1.5,0,0.8660254037844
9,1.5,0,0.8660254037844
10,-0.5,0,0.8660254037844
*ELEMENT,TYPE=SPRINGA
1,4,1
2,5,1
3,3,1
4,10,8
5,6,3
6,5,9
7,10,6
8,10,1
9,5,6
*ELEMENT,TYPE=MASS
10,1
11,6
12,10
13,5
14,3
*NSET,NSET=N_MASS
4
*ELSET,ELSET=SPRING_K4
4
6
*ELSET,ELSET=SPRING_K1
1
*ELSET,ELSET=SPRING_K2
3
*ELSET,ELSET=SPRING_K3
5
*ELSET,ELSET=TRUSS
2
7
8
9
*ELSET,ELSET=MASS_1
10
*ELSET,ELSET=MASS_2
11
*ELSET,ELSET=MASS_3
12
13
*ELSET,ELSET=MASS_4
14
*SPRING,ELSET=SPRING_K4

1.000000000000E+004
*SPRING,ELSET=SPRING_K1

2.000000000000E+005
*SPRING,ELSET=SPRING_K2

1.250000000000E+003
*SPRING,ELSET=SPRING_K3

2.000000000000E+004
*SPRING,ELSET=TRUSS

1.000000000000E+009
*BOUNDARY
1,1,,0
1,2,,0
2,1,,0
2,2,,0
3,1,,0
3,2,,0
4,1,,0
4,2,,0
5,2,,0
5,3,,0
6,1,,0
6,2,,0
7,1,,0
7,2,,0
8,1,,0
8,2,,0
8,3,,0
9,1,,0
9,2,,0
9,3,,0
10,2,,0
10,3,,0
*MASS,ELSET=MASS_1
10
*MASS,ELSET=MASS_2
15
*MASS,ELSET=MASS_3
2.5
*MASS,ELSET=MASS_4
40
*STEP,PERTURBATION
*FREQUENCY
4
*NODE FILE,GLOBAL=YES
U
*EL FILE
S,NOE,ENER
*END STEP

Regards

Do I understand you correctly that this behavior is the same between ARPACK and ARPACK-ng?

That seems to suggest 3rav who posted that ERROR message on issues.

I’m using ccx v2.23 provided by Victor (MECWAY) which I guess includes ARPACK (no ng).

Manual says:

ARPACK software library included with Mecway is used under the following license.

Copyright (c) 1996-2008 Rice University.
Developed by D.C. Sorensen, R.B. Lehoucq, C. Yang, and K. Maschhoff.

If someone managed to install ARPACK-ng version on it’s ccx maybe could give it a try to my inp.. ?¿?

I ran the academic example with 3 different executables:

  1. official Windows precompiled ccx_dynamic.exe 2.23 version using PARDISO (not clear which Arpack library is being used)
  2. official Windows precompiled ccx_static.exe 2.23 version using PASTIX (not clear which Arpack library is being used)
  3. my own build with cygwin environment under Windows using the ARPACK-NG library provided through the cygwin Compiler environment

The results are for all 3 executables the same:

  • Requesting 4 or 10 (which is higher than the number of possible eigenvalues) we get the eigenfrequencies
  • Requesting 3 eigenvalues there is no dat file eigenvalue output for any of the used versions.

Thank you!

NG is with ilp 64Bit Mode or parallel threads support.
Here is the question: can original calculix use this advantages.
Old arpack is here limited.
64Bit and parallel is actual a limitation of arpack.

Tests with large model with more than 1 Million elements are here necessary to see here the limits of old arpack lib and new arpack ng.

The version I provide for the official website is built in the msys2/mingw (ucrt64) environment and uses specifically this arpack version, arpack-ng ( Base Package: mingw-w64-arpack - MSYS2 Packages ), while the i8 version uses arpack64. Everything can be viewed in the PKGBUILD file (MINGW-packages/mingw-w64-calculix-ccx/PKGBUILD at master · msys2/MINGW-packages · GitHub); the only difference is that the ccx version directly in msys2/mingw is not linked with PARDISO.

I have been building CalculiX with arpack-ng for some time now. It works without issues, as far as I can tell.

With arpack-ng 3.9.1, I use the following commands to compile it as a static library on a UNIX platform:

set -e
PREFIX=`pwd`

cd source
rm -rf arpack*
tar xf ../distfiles/arpack-ng-3.9.1.tar.gz
mv arpack-ng-3.9.1 arpack

# Build arpack.
cd arpack
autoreconf -vif
env INTERFACE64=1 CC=gcc13 F77=gfortran13 FC=gfortran13 \
    LDFLAGS=-L${PREFIX} \
./configure --with-blas=-lopenblas --with-lapack=-lopenblas --enable-icb --enable-static --disable-shared --prefix=${PREFIX}
gmake
gmake install
cd ..
rm -rf arpack

The main reasons for me not to use the OS supplied package of arpack-ng is that it is configured differently from what is needed for CalculiX.

2 Likes

I’ve ran the example with both a CCX build using Rice University’s ARPACK as well as ARPACK-ng and the behavior is identical w.r.t. the frequencies and the runtime errors. So no reason not to use ARPACK-ng.

1 Like

So I see here calculix development in response.
What do they use?
Arpack-NG is here for me the successor of old limited arpack lib.

4 byte and 8 byte version is also necessary for small and great models for best performance.

A Table of solvers with their possibilities and limits serial and parallel, 32bit and 64Bit and more is also nice for users.

CalculiX does not use parallel ARPACK (PARPACK), which you can confirm for yourself in the ARPACK bindings (arpack.c): All procedures in parallel ARPACK are prefixed with a “p” across its API, e.g. “pdseupd” instead of “dseupd”. We only call the latter kind in CalculiX.

I have been digging a little into this issue, and here are my findings

For this specific dataset provide by @disla has the *ERROR messages exist ever since the MASS element was implemented in ccx_2.12 and to present and the result values from arpack was just zeroe until ccx_2.21

With ccx_2.21 some changes was made to the arpack routine, it didn’t removed the *ERROR message but the result become real numbers (right or wrong). These changes introduced simultaneous for this specific dataset missing frequencies/crashes and unfinished jobs depending on specified number of frequencies chosen in the dataset.

These missing frequencies/crashes are caused by a bug by the ccx rewritten memory calloc function called by the C macro NNEW(d,double,nev+1)/NNEW(d,double,nev).
In the following shown (if block) from arpack.c a quick fix of this issue can simply be done by add a basic calloc function call outside the (if block) and comment out the inside mem allocation. It has been tested on different version Windows/Linux, arpack/arpack-ng, spooles/pardiso/mumps and seems to be stable so in case the result are trustworthy it could be a temporary solution since it doesn’t affect the functionality of the arpack routine.

It should be noted, that the *ERROR message still exist, and I am so far not sure how to avoid it in a proper manner, looking of the error code thought the different version of ccx, it seem a little unsure about the caused since the error value vary depending of the version of ccx.

For max number of eigenvalues I got following and it would be nice if someone with access to ABAQUS could check the result to verify whether of not the result could be trustworthy despite of the *ERROR messages.


                        S T E P       1


     E I G E N V A L U E   O U T P U T

 MODE NO    EIGENVALUE                       FREQUENCY   
                                     REAL PART            IMAGINARY PART
                           (RAD/TIME)      (CYCLES/TIME     (RAD/TIME)

      1   0.3968103E+03   0.1992010E+02   0.3170382E+01   0.0000000E+00
      2   0.2165678E+04   0.4653685E+02   0.7406570E+01   0.0000000E+00
      3   0.1219232E+09   0.1104188E+05   0.1757370E+04   0.0000000E+00
      4   0.2000040E+09   0.1414228E+05   0.2250813E+04   0.0000000E+00
      5   0.3280802E+09   0.1811299E+05   0.2882771E+04   0.0000000E+00

     P A R T I C I P A T I O N   F A C T O R S

MODE NO.   X-COMPONENT     Y-COMPONENT     Z-COMPONENT     X-ROTATION      Y-ROTATION      Z-ROTATION

      1   0.1387779E-15   0.0000000E+00  -0.6297438E+01   0.0000000E+00   0.5578871E-14   0.0000000E+00
      2  -0.6661338E-15   0.0000000E+00  -0.9836555E+00   0.0000000E+00   0.7771561E-15   0.0000000E+00
      3   0.5739853E-13   0.0000000E+00  -0.4923230E+01   0.0000000E+00   0.5115353E-13   0.0000000E+00
      4  -0.2236068E+01   0.0000000E+00  -0.1192863E-12   0.0000000E+00  -0.1936492E+01   0.0000000E+00
      5   0.3919087E-13   0.0000000E+00   0.3694644E+00   0.0000000E+00   0.3386180E-13   0.0000000E+00

     E F F E C T I V E   M O D A L   M A S S

MODE NO.   X-COMPONENT     Y-COMPONENT     Z-COMPONENT     X-ROTATION      Y-ROTATION      Z-ROTATION

      1   0.1925930E-31   0.0000000E+00   0.3965773E+02   0.0000000E+00   0.3112380E-28   0.0000000E+00
      2   0.4437343E-30   0.0000000E+00   0.9675782E+00   0.0000000E+00   0.6039716E-30   0.0000000E+00
      3   0.3294591E-26   0.0000000E+00   0.2423819E+02   0.0000000E+00   0.2616683E-26   0.0000000E+00
      4   0.5000000E+01   0.0000000E+00   0.1422922E-25   0.0000000E+00   0.3750000E+01   0.0000000E+00
      5   0.1535925E-26   0.0000000E+00   0.1365040E+00   0.0000000E+00   0.1146622E-26   0.0000000E+00
TOTAL     0.5000000E+01   0.0000000E+00   0.6500000E+02   0.0000000E+00   0.3750000E+01   0.0000000E+00

     T O T A L   E F F E C T I V E   M A S S

           X-COMPONENT     Y-COMPONENT     Z-COMPONENT     X-ROTATION      Y-ROTATION      Z-ROTATION

          0.5000000E+01   0.0000000E+00   0.6500000E+02   0.0000000E+00   0.3750000E+01   0.0000000E+00


     F R A C T I O N   O F   T O T A L S

           X-COMPONENT     Y-COMPONENT     Z-COMPONENT     X-ROTATION      Y-ROTATION      Z-ROTATION

          0.1000000E+01   0.1000000E+01   0.1000000E+01   0.1000000E+01   0.1000000E+01   0.1000000E+01

1 Like

Has anyone tried to compile ARPACK-NG with newer gnu tools under windows 10? Not mysys2. Thanks.

I don’t compile ARPACK-NG with a “newer gnu tool”, but I build ccx on Windows 10 with the old school cygwin environment. With the cygwin setup tool you can include the ARPACK-NG library (actual version is 3.9.1-1) to your ccx development environment.

1 Like

Sorry, neither cygwin. Just the pure windows. I compiled it years ago. But new gnu toolset treat Fortran more strictly. Maybe I should try with legacy switch.