"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Kernel/EigenSolve.cpp" between
getdp-3.4.0-source.tgz and getdp-3.5.0-source.tgz

About: GetDP is a general finite element solver using mixed elements to discretize de Rham-type complexes in one, two and three dimensions.

EigenSolve.cpp  (getdp-3.4.0-source.tgz):EigenSolve.cpp  (getdp-3.5.0-source.tgz)
// GetDP - Copyright (C) 1997-2021 P. Dular and C. Geuzaine, University of Liege // GetDP - Copyright (C) 1997-2022 P. Dular and C. Geuzaine, University of Liege
// //
// See the LICENSE.txt file for license information. Please report all // See the LICENSE.txt file for license information. Please report all
// issues on https://gitlab.onelab.info/getdp/getdp/issues. // issues on https://gitlab.onelab.info/getdp/getdp/issues.
#include "GetDPConfig.h" #include "GetDPConfig.h"
#include "Message.h" #include "Message.h"
#include "EigenSolve.h" #include "EigenSolve.h"
extern int Flag_SLEPC; extern int Flag_SLEPC;
void EigenSolve(struct DofData * DofData_P, int NumEigenvalues, void EigenSolve(struct DofData *DofData_P, int NumEigenvalues, double shift_r,
double shift_r, double shift_i, int FilterExpressionIndex, double shift_i, int FilterExpressionIndex,
List_T *RationalCoefsNum, List_T *RationalCoefsDen , List_T *RationalCoefsNum, List_T *RationalCoefsDen,
List_T *ApplyResolventRealFreqs, struct DofData * DofData_P2) List_T *ApplyResolventRealFreqs, struct DofData *DofData_P2)
{ {
#if defined(HAVE_ARPACK) && defined(HAVE_SLEPC) #if defined(HAVE_ARPACK) && defined(HAVE_SLEPC)
// if both Arpack and SLEPC are available, use Arpack by default // if both Arpack and SLEPC are available, use Arpack by default
// (set "-slepc" on the command line to force SLEPC) // (set "-slepc" on the command line to force SLEPC)
if(Flag_SLEPC) if(Flag_SLEPC)
EigenSolve_SLEPC(DofData_P, NumEigenvalues, shift_r, shift_i, EigenSolve_SLEPC(DofData_P, NumEigenvalues, shift_r, shift_i,
FilterExpressionIndex, FilterExpressionIndex, RationalCoefsNum, RationalCoefsDen,
RationalCoefsNum, RationalCoefsDen,
ApplyResolventRealFreqs, DofData_P2); ApplyResolventRealFreqs, DofData_P2);
else else
EigenSolve_ARPACK(DofData_P, NumEigenvalues, shift_r, shift_i, EigenSolve_ARPACK(DofData_P, NumEigenvalues, shift_r, shift_i,
FilterExpressionIndex); FilterExpressionIndex);
#elif defined(HAVE_ARPACK) #elif defined(HAVE_ARPACK)
EigenSolve_ARPACK(DofData_P, NumEigenvalues, shift_r, shift_i, EigenSolve_ARPACK(DofData_P, NumEigenvalues, shift_r, shift_i,
FilterExpressionIndex); FilterExpressionIndex);
#elif defined(HAVE_SLEPC) #elif defined(HAVE_SLEPC)
EigenSolve_SLEPC(DofData_P, NumEigenvalues, shift_r, shift_i, EigenSolve_SLEPC(DofData_P, NumEigenvalues, shift_r, shift_i,
FilterExpressionIndex, FilterExpressionIndex, RationalCoefsNum, RationalCoefsDen,
RationalCoefsNum, RationalCoefsDen,
ApplyResolventRealFreqs, DofData_P2); ApplyResolventRealFreqs, DofData_P2);
#else #else
Message::Error("EigenSolve not available without SLEPC or ARPACK"); Message::Error("EigenSolve not available without SLEPC or ARPACK");
#endif #endif
} }
 End of changes. 4 change blocks. 
9 lines changed or deleted 7 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)