Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
ogs
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
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dmitri Naumov
ogs
Commits
673fff8e
Commit
673fff8e
authored
10 years ago
by
wenqing
Browse files
Options
Downloads
Patches
Plain Diff
[Mesh] Added reading partitioned mesh to readMeshFromFile.
parent
f5e8bd96
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
FileIO/readMeshFromFile.cpp
+14
-0
14 additions, 0 deletions
FileIO/readMeshFromFile.cpp
with
14 additions
and
0 deletions
FileIO/readMeshFromFile.cpp
+
14
−
0
View file @
673fff8e
...
...
@@ -15,6 +15,10 @@
* @author Karsten Rink
*/
#ifdef USE_PETSC
#include
<petscksp.h>
#endif
// ThirdParty/logog
#include
"logog/include/logog.hpp"
...
...
@@ -29,11 +33,20 @@
#include
"Legacy/MeshIO.h"
#include
"FileIO/VtkIO/VtuInterface.h"
#include
"readMeshFromFile.h"
//
#ifdef USE_PETSC
#include
"MPI_IO/NodePartitionedMeshReader.h"
#include
"MeshLib/NodePartitionedMesh.h"
#endif
namespace
FileIO
{
MeshLib
::
Mesh
*
readMeshFromFile
(
const
std
::
string
&
file_name
)
{
#ifdef USE_PETSC
NodePartitionedMeshReader
read_pmesh
(
PETSC_COMM_WORLD
);
return
read_pmesh
.
read
(
file_name
);
#else
if
(
BaseLib
::
hasFileExtension
(
"msh"
,
file_name
))
{
Legacy
::
MeshIO
meshIO
;
...
...
@@ -42,6 +55,7 @@ MeshLib::Mesh* readMeshFromFile(const std::string &file_name)
if
(
BaseLib
::
hasFileExtension
(
"vtu"
,
file_name
))
return
VtuInterface
::
readVTUFile
(
file_name
);
#endif
ERR
(
"readMeshFromFile(): Unknown mesh file format in file %s."
,
file_name
.
c_str
());
return
nullptr
;
...
...
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