Skip to content

Commit

Permalink
Check that an input value is correct
Browse files Browse the repository at this point in the history
  • Loading branch information
mmalinen committed Oct 14, 2024
1 parent 89b896c commit bb9ff57
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 6 additions & 0 deletions fem/src/DefUtils.F90
Original file line number Diff line number Diff line change
Expand Up @@ -919,6 +919,9 @@ SUBROUTINE GetScalarLocalEigenmode( x,name,UElement,USolver,NoEigen,ComplexPart
END IF
n = MIN( n, SIZE(x) )

IF (SIZE(Variable % EigenVectors,1) < NoEigen) THEN
CALL Fatal('GetScalarLocalEigenmode', 'Less eigenfunctions available than requested')
END IF
Values => Variable % EigenVectors( NoEigen, :)

IF ( ASSOCIATED( Variable % Perm ) ) THEN
Expand Down Expand Up @@ -985,6 +988,9 @@ SUBROUTINE GetVectorLocalEigenmode( x,name,UElement,USolver,NoEigen,ComplexPart
END IF
n = MIN( n, SIZE(x) )

IF (SIZE(Variable % EigenVectors,1) < NoEigen) THEN
CALL Fatal('GetVectorLocalEigenmode', 'Less eigenfunctions available than requested')
END IF
Values => Variable % EigenVectors( NoEigen, : )

DO i=1,Variable % DOFs
Expand Down
1 change: 0 additions & 1 deletion fem/src/SOLVER.KEYWORDS
Original file line number Diff line number Diff line change
Expand Up @@ -1288,7 +1288,6 @@ Solver:Real: 'Curvature Diffusion'
Solver:Real: 'Desired Heating Power'
Solver:Real: 'Dot Product Tolerance'
Solver:Real: 'Drilling Stabilization Parameter'
Solver:Real: 'Eigen System Convergence Tolerance'
Solver:Real: 'Eigen System Convergence Tolerance'
Solver:Real: 'Eigen System Shift'
Solver:Real: 'Eigen System Shifting Constant'
Expand Down

0 comments on commit bb9ff57

Please sign in to comment.