Skip to content

Commit 2212a37

Browse files
Version check
1 parent 5938b99 commit 2212a37

9 files changed

Lines changed: 17 additions & 32 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ If you need the developer version, you are on the right place.
2525
* 4.1- To execute Kratos using the standard pip packages:
2626
* Python version recommended: 3.8, 3.9, 3.10, 3.11
2727
* Open a terminal and run
28-
- Linux: `python3 -m pip install --upgrade --force-reinstall --no-cache-dir KratosMultiphysics-all==9.4.6`
29-
- Windows: `python -m pip install --upgrade --force-reinstall --no-cache-dir KratosMultiphysics-all==9.4.6`
28+
- Linux: `python3 -m pip install --upgrade --force-reinstall --no-cache-dir KratosMultiphysics-all==9.5.1`
29+
- Windows: `python -m pip install --upgrade --force-reinstall --no-cache-dir KratosMultiphysics-all==9.5.1`
3030
* 4.2- To execute Kratos using your compiled binaries:
3131
* Fill the Kratos preferences windows with
3232
- Path to the python folder

dockers/create-release.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#!/bin/bash
22

33
# Change directory to the specified directory
4-
cd /tmp/dist/kratos-9.4.6/
4+
cd /tmp/dist/kratos-9.5.1/
55
find . -type f -name "*.unix.bat" -print0 | xargs -0 dos2unix
66

77
# Add execute permission to all .bat files in the directory
88
# chmod 755 *.bat
99

1010
# Create a tgz file from the directory
11-
tar -czf ../kratos-9.4.6-linux-64.tgz *
11+
tar -czf ../kratos-9.5.1-linux-64.tgz *
1212

dockers/deploy.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
set krversion=9.4.6
1+
set krversion=9.5.1
22
set pyversion=3.11
33
@REM 3.10.10-alpine3.17
44
echo "Building kratos %krversion% on python %pyversion%"

dockers/dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ FROM python:$pyversion
88
# Update pip
99
RUN pip install --upgrade pip
1010

11-
ARG krversion=9.4.6
11+
ARG krversion=9.5.1
1212

1313
# WORKDIR /tmp
1414
# COPY ./wheels/ ./wheels/

kratos.gid/kratos.tcl

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,8 @@ namespace eval ::Kratos {
1313
variable namespaces
1414
}
1515

16-
# Hard minimum GiD Version is 14
17-
if {[GidUtils::VersionCmp "14.0.1"] >=0 } {
18-
if {[GidUtils::VersionCmp "14.1.1"] >=0 } {
19-
# GiD Developer versions
20-
proc GiD_Event_InitProblemtype { dir } {
16+
proc GiD_Event_InitProblemtype { dir } {
2117
Kratos::Event_InitProblemtype $dir
22-
}
23-
} {
24-
# GiD Official versions
25-
proc InitGIDProject { dir } {
26-
Kratos::Event_InitProblemtype $dir
27-
}
28-
}
29-
} {
30-
# GiD versions previous to 15 are no longer allowed
31-
# As we dont register the event InitProblemtype, the rest of events are also unregistered
32-
# So no chance to open anything in GiD 13.x or earlier
33-
WarnWin "The minimum GiD Version for Kratos is 15 or later \nUpdate at gidhome.com"
3418
}
3519

3620
proc Kratos::Events { } {

kratos.gid/kratos.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<Name>Kratos</Name>
66
<Version>9.5.2</Version>
77
<ExecutableVersion></ExecutableVersion>
8-
<MinimumGiDVersion>16.1.4d</MinimumGiDVersion>
8+
<MinimumGiDVersion>16.1.10d</MinimumGiDVersion>
99
<MaximumGiDVersion>17.1.99d</MaximumGiDVersion>
1010
<CustomLibAutomatic>0</CustomLibAutomatic>
1111
<CustomLibNativeGroups>1</CustomLibNativeGroups>

kratos.gid/kratos_default.spd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- -*- coding: utf-8; mode: SGML -*- -->
3-
<Kratos_data version='9.4.6'>
3+
<Kratos_data version='9.5.1'>
44
<style show_menubutton_about='0' show_menubutton_search='1'></style>
55
<groups/>
66
<units></units>

kratos.gid/scripts/Utils.tcl

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,13 @@ proc Kratos::WarnAboutMinimumRecommendedGiDVersion { } {
8787

8888
if { [GidUtils::VersionCmp $kratos_private(MinimumGiDVersion)] < 0 } {
8989
W "Warning: kratos interface requires GiD $kratos_private(MinimumGiDVersion) or later."
90-
if { [GidUtils::VersionCmp 14.0.0] < 0 } {
91-
W "If you are still using a GiD version 13.1.7d or later, you can still use most of the features, but think about upgrading to GiD 14."
92-
} {
93-
W "If you are using an official version of GiD 14, we recommend to use the latest developer version"
94-
}
95-
W "Download it from: https://www.gidhome.com/download/developer-versions/"
90+
W "Download it from: https://www.gidsimulation.com/gid-for-science/downloads/"
91+
}
92+
# Check GiD maximum version
93+
if { [GidUtils::VersionCmp $kratos_private(MaximumGiDVersion)] > 0 } {
94+
W "Warning: kratos interface requires GiD $kratos_private(MaximumGiDVersion) or less."
95+
W "You may experience problems with the python packages"
96+
W "You can download it from: https://www.gidsimulation.com/gid-for-science/downloads/"
9697
}
9798
}
9899

tools/create-release.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
set VERSION=9.4.6
1+
set VERSION=9.5.1
22
@REM git checkout master
33
@REM git fetch -p
44
@REM git pull -p

0 commit comments

Comments
 (0)