Merge pull request #214654 from bcdarwin/update-elmerfem

elmerfem: 9.0 -> unstable-2023-02-03

authored by Mario Rodas and committed by GitHub 0167117f 50dc8c78

+8 -155
+8 -13
pkgs/applications/science/physics/elmerfem/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, cmake, git, gfortran, mpi, blas, liblapack, pkg-config, libGL, libGLU, opencascade, libsForQt5, vtk_8_withQt5}: 1 + { lib, stdenv, fetchFromGitHub, cmake, git, gfortran, mpi, blas, liblapack, pkg-config, libGL, libGLU, opencascade, libsForQt5, tbb, vtkWithQt5 }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "elmerfem"; 5 - version = "9.0"; 5 + version = "unstable-2023-02-03"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "elmercsc"; 9 - repo = "elmerfem"; 10 - rev = "release-${version}"; 11 - sha256 = "VK7jvu4s5d7k0c39XqY9dEzg/vXtX5Yr/09VcuZVQ9A="; 9 + repo = pname; 10 + rev = "39c8784b6e4543a6bf560b5d597e0eec1eb06343"; 11 + hash = "sha256-yyxgFvlS+I4PouDL6eD4ZrXuONTDejCSYKq2AwQ0Iug="; 12 12 }; 13 13 14 14 hardeningDisable = [ "format" ]; ··· 29 29 libGL 30 30 libGLU 31 31 opencascade 32 - vtk_8_withQt5 32 + tbb 33 + vtkWithQt5 33 34 ]; 34 35 35 36 preConfigure = '' 36 37 patchShebangs ./ 37 38 ''; 38 - 39 - patches = [ 40 - ./patches/0001-fix-import-of-QPainterPath.patch 41 - ./patches/0002-fem-rename-loopvars-to-avoid-redefinition.patch 42 - ./patches/0003-ignore-qwt_compat.patch 43 - ]; 44 39 45 40 storepath = placeholder "out"; 46 41 ··· 58 53 ]; 59 54 60 55 meta = with lib; { 61 - homepage = "https://elmerfem.org/"; 56 + homepage = "https://elmerfem.org"; 62 57 description = "A finite element software for multiphysical problems"; 63 58 platforms = platforms.unix; 64 59 maintainers = with maintainers; [ wulfsta broke ];
-24
pkgs/applications/science/physics/elmerfem/patches/0001-fix-import-of-QPainterPath.patch
··· 1 - From 87885de957aa3f891fe963503c94685675c24f49 Mon Sep 17 00:00:00 2001 2 - From: grindhold <grindhold@gmx.net> 3 - Date: Wed, 27 Apr 2022 19:16:42 +0200 4 - Subject: [PATCH] fix import of QPainterPath 5 - 6 - --- 7 - ElmerGUI/Application/twod/renderarea.cpp | 1 + 8 - 1 file changed, 1 insertion(+) 9 - 10 - diff --git a/ElmerGUI/Application/twod/renderarea.cpp b/ElmerGUI/Application/twod/renderarea.cpp 11 - index 4c2515c5..65128ea9 100644 12 - --- a/ElmerGUI/Application/twod/renderarea.cpp 13 - +++ b/ElmerGUI/Application/twod/renderarea.cpp 14 - @@ -38,6 +38,7 @@ 15 - * * 16 - *****************************************************************************/ 17 - #include <QPainter> 18 - +#include <QPainterPath> 19 - #include <QMouseEvent> 20 - #include <QFile> 21 - #include <QTextStream> 22 - -- 23 - 2.33.3 24 -
-82
pkgs/applications/science/physics/elmerfem/patches/0002-fem-rename-loopvars-to-avoid-redefinition.patch
··· 1 - From 06634e5fd46a27dca11b87d4a38e9ead561de3d5 Mon Sep 17 00:00:00 2001 2 - From: grindhold <grindhold@gmx.net> 3 - Date: Thu, 28 Apr 2022 15:47:07 +0200 4 - Subject: [PATCH] fem: rename loopvars to avoid redefinition 5 - 6 - --- 7 - fem/src/modules/DCRComplexSolve.F90 | 28 ++++++++++++++-------------- 8 - 1 file changed, 14 insertions(+), 14 deletions(-) 9 - 10 - diff --git a/fem/src/modules/DCRComplexSolve.F90 b/fem/src/modules/DCRComplexSolve.F90 11 - index 469214ee..268591fd 100644 12 - --- a/fem/src/modules/DCRComplexSolve.F90 13 - +++ b/fem/src/modules/DCRComplexSolve.F90 14 - @@ -502,14 +502,14 @@ CONTAINS 15 - 16 - IF ( SIZE(Hwrk,1) == 1 ) THEN 17 - 18 - - DO i=1,MIN(3,SIZE(Hwrk,2)) 19 - - Tensor( i,1:n ) = Hwrk( 1,1,1:n ) 20 - + DO k=1,MIN(3,SIZE(Hwrk,2)) 21 - + Tensor( k,1:n ) = Hwrk( 1,1,1:n ) 22 - END DO 23 - 24 - ELSE 25 - 26 - - DO i=1,MIN(3,SIZE(Hwrk,1)) 27 - - Tensor( i,1:n ) = Hwrk( i,1,1:n ) 28 - + DO k=1,MIN(3,SIZE(Hwrk,1)) 29 - + Tensor( k,1:n ) = Hwrk( k,1,1:n ) 30 - END DO 31 - 32 - END IF 33 - @@ -1391,21 +1391,21 @@ contains 34 - 35 - IF ( SIZE(Hwrk,1) == 1 ) THEN 36 - 37 - - DO i=1,MIN(3,SIZE(Hwrk,2)) 38 - - Tensor( i,i,1:n ) = Hwrk( 1,1,1:n ) 39 - + DO k=1,MIN(3,SIZE(Hwrk,2)) 40 - + Tensor( k,k,1:n ) = Hwrk( 1,1,1:n ) 41 - END DO 42 - 43 - ELSE IF ( SIZE(Hwrk,2) == 1 ) THEN 44 - 45 - - DO i=1,MIN(3,SIZE(Hwrk,1)) 46 - - Tensor(i,i,1:n) = Hwrk(i,1,1:n) 47 - + DO k=1,MIN(3,SIZE(Hwrk,1)) 48 - + Tensor(k,k,1:n) = Hwrk(k,1,1:n) 49 - END DO 50 - 51 - ELSE 52 - 53 - - DO i=1,MIN(3,SIZE(Hwrk,1)) 54 - + DO k=1,MIN(3,SIZE(Hwrk,1)) 55 - DO j=1,MIN(3,SIZE(Hwrk,2)) 56 - - Tensor( i,j,1:n ) = Hwrk(i,j,1:n) 57 - + Tensor( k,j,1:n ) = Hwrk(k,j,1:n) 58 - END DO 59 - END DO 60 - 61 - @@ -1443,14 +1443,14 @@ contains 62 - 63 - IF ( SIZE(Hwrk,1) == 1 ) THEN 64 - 65 - - DO i=1,MIN(3,SIZE(Hwrk,2)) 66 - - Tensor( i,1:n ) = Hwrk( 1,1,1:n ) 67 - + DO k=1,MIN(3,SIZE(Hwrk,2)) 68 - + Tensor( k,1:n ) = Hwrk( 1,1,1:n ) 69 - END DO 70 - 71 - ELSE 72 - 73 - - DO i=1,MIN(3,SIZE(Hwrk,1)) 74 - - Tensor( i,1:n ) = Hwrk( i,1,1:n ) 75 - + DO k=1,MIN(3,SIZE(Hwrk,1)) 76 - + Tensor( k,1:n ) = Hwrk( k,1,1:n ) 77 - END DO 78 - 79 - END IF 80 - -- 81 - 2.33.3 82 -
-36
pkgs/applications/science/physics/elmerfem/patches/0003-ignore-qwt_compat.patch
··· 1 - From 26601fec36a4978e805aad40e6d0cbf268c653d2 Mon Sep 17 00:00:00 2001 2 - From: grindhold <grindhold@gmx.net> 3 - Date: Thu, 28 Apr 2022 17:13:06 +0200 4 - Subject: [PATCH] ignore qwt_compat 5 - 6 - --- 7 - ElmerGUI/Application/src/convergenceview.h | 6 +++--- 8 - 1 file changed, 3 insertions(+), 3 deletions(-) 9 - 10 - diff --git a/ElmerGUI/Application/src/convergenceview.h b/ElmerGUI/Application/src/convergenceview.h 11 - index 377b644b..64250149 100755 12 - --- a/ElmerGUI/Application/src/convergenceview.h 13 - +++ b/ElmerGUI/Application/src/convergenceview.h 14 - @@ -52,7 +52,7 @@ 15 - #include <qwt_plot_grid.h> 16 - #include <qwt_legend.h> 17 - /*#include <qwt_data.h> <-- deprecated in Qwt6, using qwt_compat.h instead*/ 18 - -#include <qwt_compat.h> 19 - +/*#include <qwt_compat.h>*/ 20 - #include <qwt_text.h> 21 - #include <qwt_scale_engine.h> 22 - 23 - @@ -76,8 +76,8 @@ public: 24 - 25 - private: 26 - int d_count; 27 - - QwtArray<double> d_x; 28 - - QwtArray<double> d_y; 29 - + QVector<double> d_x; 30 - + QVector<double> d_y; 31 - }; 32 - 33 - class Curve 34 - -- 35 - 2.33.3 36 -