Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gmsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
46156a2b
Commit
46156a2b
authored
14 years ago
by
Jonathan Lambrechts
Browse files
Options
Downloads
Patches
Plain Diff
initial test with swig
parent
4fa192ea
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
CMakeLists.txt
+12
-0
12 additions, 0 deletions
CMakeLists.txt
Geo/GModel.h
+2
-2
2 additions, 2 deletions
Geo/GModel.h
Geo/GModel.i
+9
-0
9 additions, 0 deletions
Geo/GModel.i
Geo/GModelIO_Fourier.cpp
+6
-0
6 additions, 0 deletions
Geo/GModelIO_Fourier.cpp
with
29 additions
and
2 deletions
CMakeLists.txt
+
12
−
0
View file @
46156a2b
...
...
@@ -50,6 +50,7 @@ option(ENABLE_QT "Build QT GUI" OFF)
option
(
ENABLE_READLINE
"Enable Readline in Lua prompt"
ON
)
option
(
ENABLE_SLEPC
"Enable SLEPc eigensolvers"
ON
)
option
(
ENABLE_SOLVER
"Enable solver components"
ON
)
option
(
ENABLE_SWIG_EXPERIMENTAL
"Enable swig (in developement, totally unusable)"
OFF
)
option
(
ENABLE_TAUCS
"Enable Taucs linear algebra solver"
ON
)
option
(
ENABLE_TETGEN
"Enable Tetgen mesh generator"
ON
)
option
(
ENABLE_TETGEN_NEW
"Enable experimental version of Tetgen"
OFF
)
...
...
@@ -1119,3 +1120,14 @@ message("")
mark_as_advanced
(
BISON FLEX GMP_LIB GMSH_EXTRA_VERSION HDF5_LIB MAKEINFO
MED_LIB OCC_INC SZ_LIB TAUCS_LIB LUA_LIB ACIS_LIB TEXI2PDF
READLINE_LIB
)
if
(
ENABLE_SWIG_EXPERIMENTAL
)
FIND_PACKAGE
(
SWIG REQUIRED
)
INCLUDE
(
${
SWIG_USE_FILE
}
)
FIND_PACKAGE
(
PythonLibs
)
INCLUDE_DIRECTORIES
(
${
CMAKE_CURRENT_SOURCE_DIR
}
;
${
PYTHON_INCLUDE_DIR
}
;../Common;
${
CMAKE_CURRENT_BINARY_DIR
}
/../Common
)
SET_SOURCE_FILES_PROPERTIES
(
Geo/GModel.i PROPERTIES CPLUSPLUS ON
)
#SET_SOURCE_FILES_PROPERTIES(Geo/GModel.i SWIG_FLAGS "-includeall -importall")
SWIG_ADD_MODULE
(
gmshPython python Geo/GModel.i
${
GMSH_SRC
}
)
SWIG_LINK_LIBRARIES
(
gmshPython
${
PYTHON_LIBRARIES
}
${
EXTERNAL_LIBRARIES
}
)
endif
(
ENABLE_SWIG_EXPERIMENTAL
)
This diff is collapsed.
Click to expand it.
Geo/GModel.h
+
2
−
2
View file @
46156a2b
...
...
@@ -481,9 +481,9 @@ class GModel
int
writePartitionedMSH
(
const
std
::
string
&
baseName
,
bool
binary
=
false
,
bool
saveAll
=
false
,
bool
saveParametric
=
false
,
double
scalingFactor
=
1.0
);
int
writeDistanceMSH
(
const
std
::
string
&
name
,
double
version
=
2.2
,
bool
binary
=
false
,
/*
int writeDistanceMSH(const std::string &name, double version=2.2, bool binary=false,
bool saveAll=false, bool saveParametric=false,
double
scalingFactor
=
1.0
);
double scalingFactor=1.0);
*/
// Iridium file format
int
writeIR3
(
const
std
::
string
&
name
,
int
elementTagType
,
...
...
This diff is collapsed.
Click to expand it.
Geo/GModel.i
0 → 100644
+
9
−
0
View file @
46156a2b
%
module
gmshPython
%
include
std_string
.
i
%
{
#include "GModel.h"
void GmshInitialize(int argc=0, char **argv=NULL);
%}
void
GmshInitialize
(
int
argc
=
0
,
char
**
argv
=
NULL
)
;
%
include
"
GModel.h
"
This diff is collapsed.
Click to expand it.
Geo/GModelIO_Fourier.cpp
+
6
−
0
View file @
46156a2b
...
...
@@ -142,6 +142,12 @@ void GModel::_deleteFMInternals()
{
}
int
GModel
::
readFourier
()
{
Msg
::
Error
(
"Gmsh must be compiled with Fourier Model support toad fourier Model"
);
return
0
;
}
int
GModel
::
readFourier
(
const
std
::
string
&
fn
)
{
Msg
::
Error
(
"Gmsh must be compiled with Fourier Model support to load '%s'"
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment