Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tobias Leibner
dune-common
Commits
034e323b
Commit
034e323b
authored
19 years ago
by
Oliver Sander
Browse files
Options
Downloads
Patches
Plain Diff
adapted to changes in psurface library
[[Imported from SVN: r4218]]
parent
d1479b07
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
io/file/amiramesh/amuggridreader.cc
+6
-6
6 additions, 6 deletions
io/file/amiramesh/amuggridreader.cc
with
6 additions
and
6 deletions
io/file/amiramesh/amuggridreader.cc
+
6
−
6
View file @
034e323b
...
...
@@ -47,7 +47,7 @@ public:
barCoords
[
0
]
+=
b
[
0
];
barCoords
[
1
]
+=
b
[
1
];
Amira
CallPositionParametrizationForDomain
(
domain_
,
triangle_
,
barCoords
,
&
result
[
0
]);
psurface
::
CallPositionParametrizationForDomain
(
domain_
,
triangle_
,
barCoords
,
&
result
[
0
]);
return
result
;
}
...
...
@@ -67,22 +67,22 @@ void Dune::AmiraMeshReader<Dune::UGGrid<3,3> >::createDomain(UGGrid<3,3>& grid,
std
::
string
domainname
=
filename
;
/* Load data */
if
(
Amira
LoadMesh
(
domainname
.
c_str
(),
filename
.
c_str
())
!=
AMIRA_
OK
)
if
(
psurface
::
LoadMesh
(
domainname
.
c_str
(),
filename
.
c_str
())
!=
psurface
::
OK
)
DUNE_THROW
(
IOError
,
"Error in AmiraMeshReader<Dune::UGGrid<3,3> >::createDomain:"
<<
"Domain file could not be opened!"
);
if
(
Amira
StartEditingDomain
(
domainname
.
c_str
())
!=
AMIRA_
OK
)
if
(
psurface
::
StartEditingDomain
(
domainname
.
c_str
())
!=
psurface
::
OK
)
DUNE_THROW
(
IOError
,
"Error in AmiraMeshReader<Dune::UGGrid<3,3> >::createDomain:"
<<
"StartEditing failed!"
);
// All further queries to the psurface library refer to the most recently
// loaded parametrization.
int
noOfSegments
=
Amira
GetNoOfSegments
();
int
noOfSegments
=
psurface
::
GetNoOfSegments
();
if
(
noOfSegments
<=
0
)
DUNE_THROW
(
IOError
,
"no segments found"
);
int
noOfNodes
=
Amira
GetNoOfNodes
();
int
noOfNodes
=
psurface
::
GetNoOfNodes
();
if
(
noOfNodes
<=
0
)
DUNE_THROW
(
IOError
,
"No nodes found"
);
...
...
@@ -91,7 +91,7 @@ void Dune::AmiraMeshReader<Dune::UGGrid<3,3> >::createDomain(UGGrid<3,3>& grid,
for
(
int
i
=
0
;
i
<
noOfSegments
;
i
++
)
{
// Gets the vertices of a boundary segment
Amira
GetNodeNumbersOfSegment
(
point
,
i
);
psurface
::
GetNodeNumbersOfSegment
(
point
,
i
);
std
::
vector
<
unsigned
int
>
vertices
(
3
);
vertices
[
0
]
=
point
[
0
];
...
...
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