Commit 0e89ce79 authored by Christophe Geuzaine's avatar Christophe Geuzaine

fix removal of physical names during sync

parent e9755630
Pipeline #2798 passed with stage
in 80 minutes and 4 seconds
......@@ -95,7 +95,7 @@ opt(ZIPPER "Enable Zip file compression/decompression" OFF)
set(GMSH_MAJOR_VERSION 4)
set(GMSH_MINOR_VERSION 0)
set(GMSH_PATCH_VERSION 3)
set(GMSH_PATCH_VERSION 4)
set(GMSH_EXTRA_VERSION "")
if(NOT GMSH_RELEASE)
......
......@@ -566,6 +566,8 @@ GMSH_API void gmsh::model::removePhysicalGroups(const vectorpair &dimTags)
}
}
// FIXME: add a "removePhysicalName" function
GMSH_API void gmsh::model::getType(const int dim, const int tag,
std::string &entityType)
{
......
......@@ -712,7 +712,11 @@ void GModel::removePhysicalGroups()
getEntities(entities);
for(unsigned int i = 0; i < entities.size(); i++)
entities[i]->physicals.clear();
physicalNames.clear();
// we cannot remove the names here, as removePhysicalGroups() is used in
// GModelIO_GEO for the synchronization. We need to add an explicit cleanup of
// physical names + move all physical defintions directly in GModel.
//physicalNames.clear();
}
void GModel::removePhysicalGroup(int dim, int tag)
......
......@@ -106,21 +106,21 @@ Public License (GPL)</a>:
<ul>
<li>
<div class="highlight">
Current stable release (version 4.0.3, 18 September 2018):
Current stable release (version 4.0.4, 19 October 2018):
<ul>
<li>Download Gmsh for
<a href="bin/Windows/gmsh-4.0.3-Windows64.zip">Windows 64-bit</a>,
<a href="bin/Windows/gmsh-4.0.3-Windows32.zip">Windows 32-bit</a>,
<a href="bin/Linux/gmsh-4.0.3-Linux64.tgz">Linux 64-bit</a>,
<a href="bin/Linux/gmsh-4.0.3-Linux32.tgz">Linux 32-bit</a> or
<a href="bin/MacOSX/gmsh-4.0.3-MacOSX.dmg">MacOS</a>
<li>Download the <a href="src/gmsh-4.0.3-source.tgz">source code</a>
<a href="bin/Windows/gmsh-4.0.4-Windows64.zip">Windows 64-bit</a>,
<a href="bin/Windows/gmsh-4.0.4-Windows32.zip">Windows 32-bit</a>,
<a href="bin/Linux/gmsh-4.0.4-Linux64.tgz">Linux 64-bit</a>,
<a href="bin/Linux/gmsh-4.0.4-Linux32.tgz">Linux 32-bit</a> or
<a href="bin/MacOSX/gmsh-4.0.4-MacOSX.dmg">MacOS</a>
<li>Download the <a href="src/gmsh-4.0.4-source.tgz">source code</a>
<li>Download the Software Development Kit (SDK) for
<a href="bin/Windows/gmsh-4.0.3-Windows64-sdk.zip">Windows 64-bit</a>,
<a href="bin/Windows/gmsh-4.0.3-Windows32-sdk.zip">Windows 32-bit</a>,
<a href="bin/Linux/gmsh-4.0.3-Linux64-sdk.tgz">Linux 64-bit</a>,
<a href="bin/Linux/gmsh-4.0.3-Linux32-sdk.tgz">Linux 32-bit</a> or
<a href="bin/MacOSX/gmsh-4.0.3-MacOSX-sdk.tgz">MacOS</a>
<a href="bin/Windows/gmsh-4.0.4-Windows64-sdk.zip">Windows 64-bit</a>,
<a href="bin/Windows/gmsh-4.0.4-Windows32-sdk.zip">Windows 32-bit</a>,
<a href="bin/Linux/gmsh-4.0.4-Linux64-sdk.tgz">Linux 64-bit</a>,
<a href="bin/Linux/gmsh-4.0.4-Linux32-sdk.tgz">Linux 32-bit</a> or
<a href="bin/MacOSX/gmsh-4.0.4-MacOSX-sdk.tgz">MacOS</a>
</ul>
</div>
<p>
......
......@@ -2,6 +2,9 @@
files=`git grep -l '(C) 1997-2017 C. Geuzaine'`
# FIXME for 2019: change "send email to gmsh@onelab.info" into
# create an issue on https://gitlab.onelab.info/gmsh/gmsh/issues
for file in $files; do
echo "modifying $file"
sed -i '' -e "s/(C) 1997-2017 C\. Geuzaine/(C) 1997-2018 C\. Geuzaine/g" $file
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment