You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to successfully run Python test applications/StructuralMechanicsApplication/tests/structural_mechanics_test_factory.py using a clean build of the Kratos Core, and the following applications: LinearSolversApplication, StructuralMechanicsApplication, and GeoMechanicsApplication. When building the software on a Windows system, I have added the -DUSE_EIGEN_MKL=OFF flag to the relevant cmake command.
Now when I run the test directly (by invoking the python command from the Command Prompt), I get several errors and a failure. Let me list a selection of them here:
Exception: FEAST not available in LinearSolversApplication. This error applies to Eigen3D3NThinCircleTests, EigenQ4Thick2x2PlateTests, EigenTL3D8NCubeTests, and RayleighProcessTest These errors make sense to me. After all, I have built the software using cmake flag -DUSE_EIGEN_MKL=OFF. The reason is I don't have FEAST installed on my system. I was just wondering whether there is a mechanism available (perhaps some environment variable or a command line flag), that would skip running tests that require FEAST, rather than raising an error.
RuntimeError: Error: Kratos components missing "LinearElasticOrthotropic2DLaw". This error applies to ShellT3AndQ4LinearStaticStructClampedCylinderOrthotropicTests and ShellT3AndQ4LinearStaticUnstructClampedCylinderOrthotropicTests. By doing a global search I have found that class LinearElasticOrthotropic2DLaw is defined in the ConstitutiveLawsApplication, which I have not built. I'm a bit confused here, since it appears to me that ConstitutiveLawsApplication is not supposed to be a dependency of StructuralMechanicsApplication. But this test clearly demonstrates it is. So how should I understand this?
RuntimeError: Error: Value type for "USE_LUMPED_MASS_MATRIX" not defined. This error applies to ShellT3AndQ4NonLinearDynamicStructOscillatingPlateLumpedTests, ShellT3AndQ4NonLinearDynamicStructPendulusLumpedTests, ShellT3AndQ4NonLinearDynamicUnstructOscillatingPlateLumpedTests, and ShellT3AndQ4NonLinearDynamicUnstructPendulusLumpedTests. Here, I'm not sure what the underlying cause of the error is.
Then there were a few more errors, where files couldn't be found. Perhaps this is related to my current working directory, which happens to be the Kratos root directory. Perhaps the test script has certain expectations about where in the directory structure it is being run? If yes, could you please indicate what that expectation is? Thank you.
I would appreciate it very much if anyone could help me in overcoming these problems. We (the Kratos team at Deltares) are planning to make some small changes to one of the truss elements in StructuralMechanicsApplication. To be confident that we don't break anything, we would like to start with green tests. But so far, we haven't been able to achieve that. Thank you very much in advance for your kind support.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi all,
I'm trying to successfully run Python test
applications/StructuralMechanicsApplication/tests/structural_mechanics_test_factory.py
using a clean build of the Kratos Core, and the following applications:LinearSolversApplication
,StructuralMechanicsApplication
, andGeoMechanicsApplication
. When building the software on a Windows system, I have added the-DUSE_EIGEN_MKL=OFF
flag to the relevant cmake command.Now when I run the test directly (by invoking the
python
command from the Command Prompt), I get several errors and a failure. Let me list a selection of them here:Exception: FEAST not available in LinearSolversApplication
. This error applies toEigen3D3NThinCircleTests
,EigenQ4Thick2x2PlateTests
,EigenTL3D8NCubeTests
, andRayleighProcessTest
These errors make sense to me. After all, I have built the software using cmake flag-DUSE_EIGEN_MKL=OFF
. The reason is I don't have FEAST installed on my system. I was just wondering whether there is a mechanism available (perhaps some environment variable or a command line flag), that would skip running tests that require FEAST, rather than raising an error.RuntimeError: Error: Kratos components missing "LinearElasticOrthotropic2DLaw"
. This error applies toShellT3AndQ4LinearStaticStructClampedCylinderOrthotropicTests
andShellT3AndQ4LinearStaticUnstructClampedCylinderOrthotropicTests
. By doing a global search I have found that classLinearElasticOrthotropic2DLaw
is defined in theConstitutiveLawsApplication
, which I have not built. I'm a bit confused here, since it appears to me thatConstitutiveLawsApplication
is not supposed to be a dependency ofStructuralMechanicsApplication
. But this test clearly demonstrates it is. So how should I understand this?RuntimeError: Error: Value type for "USE_LUMPED_MASS_MATRIX" not defined
. This error applies toShellT3AndQ4NonLinearDynamicStructOscillatingPlateLumpedTests
,ShellT3AndQ4NonLinearDynamicStructPendulusLumpedTests
,ShellT3AndQ4NonLinearDynamicUnstructOscillatingPlateLumpedTests
, andShellT3AndQ4NonLinearDynamicUnstructPendulusLumpedTests
. Here, I'm not sure what the underlying cause of the error is.Then there were a few more errors, where files couldn't be found. Perhaps this is related to my current working directory, which happens to be the Kratos root directory. Perhaps the test script has certain expectations about where in the directory structure it is being run? If yes, could you please indicate what that expectation is? Thank you.
I would appreciate it very much if anyone could help me in overcoming these problems. We (the Kratos team at Deltares) are planning to make some small changes to one of the truss elements in
StructuralMechanicsApplication
. To be confident that we don't break anything, we would like to start with green tests. But so far, we haven't been able to achieve that. Thank you very much in advance for your kind support.Best regards,
Anne van de Graaf
Beta Was this translation helpful? Give feedback.
All reactions