Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-fufem
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ansgar Burchardt
dune-fufem
Commits
05a375c0
Commit
05a375c0
authored
Apr 15, 2015
by
Oliver Sander
Browse files
Options
Downloads
Patches
Plain Diff
Fix spelling in comments
parent
2c0fd3c7
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
dune/fufem/test/dunepythontest.cc
+4
-4
4 additions, 4 deletions
dune/fufem/test/dunepythontest.cc
with
4 additions
and
4 deletions
dune/fufem/test/dunepythontest.cc
+
4
−
4
View file @
05a375c0
...
@@ -151,7 +151,7 @@ int main(int argc, char** argv) try
...
@@ -151,7 +151,7 @@ int main(int argc, char** argv) try
std
::
cout
<<
"Example 5: Types derived from Reference ***************************************"
<<
std
::
endl
;
std
::
cout
<<
"Example 5: Types derived from Reference ***************************************"
<<
std
::
endl
;
{
{
// There are various classes derived from Reference, e.g., for
// There are various classes derived from Reference, e.g., for
// modules, callables, ... providig corresponding special methods.
// modules, callables, ... providi
n
g corresponding special methods.
// Depending on the a-priori knowledge methods will either
// Depending on the a-priori knowledge methods will either
// return a Reference (e.g. get()) or a derived type (e.g. import()).
// return a Reference (e.g. get()) or a derived type (e.g. import()).
// However you can always try to convert a Reference
// However you can always try to convert a Reference
...
@@ -169,7 +169,7 @@ int main(int argc, char** argv) try
...
@@ -169,7 +169,7 @@ int main(int argc, char** argv) try
// You can obtain a Module by converting a Reference
// You can obtain a Module by converting a Reference
auto
module3
=
Python
::
Module
(
pyMain
.
get
(
"dunepythontest"
));
auto
module3
=
Python
::
Module
(
pyMain
.
get
(
"dunepythontest"
));
// Converting a nonmat
h
ching object will fail.
// Converting a nonmatching object will fail.
pyMain
.
run
(
"someInt = 3"
);
pyMain
.
run
(
"someInt = 3"
);
auto
someInt
=
pyMain
.
get
(
"someInt"
);
auto
someInt
=
pyMain
.
get
(
"someInt"
);
std
::
cout
<<
someInt
<<
std
::
endl
;
std
::
cout
<<
someInt
<<
std
::
endl
;
...
@@ -289,10 +289,10 @@ int main(int argc, char** argv) try
...
@@ -289,10 +289,10 @@ int main(int argc, char** argv) try
//
//
// All of these can be accessed using the operator () on a
// All of these can be accessed using the operator () on a
// Python::Callable which refers to a callable python object.
// Python::Callable which refers to a callable python object.
// To obtain a Callable convert an apropriate object.
// To obtain a Callable convert an ap
p
ropriate object.
//
//
// You can pass to Callable objects and C++ objects
// You can pass to Callable objects and C++ objects
// as arguments. In the later case they will be converted
// as arguments. In the lat
t
er case they will be converted
// to python objects before the actual python call is
// to python objects before the actual python call is
// executed automatically (see below).
// executed automatically (see below).
...
...
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