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
Özgür Ozan Sen
ogs
Commits
72f0d15a
Commit
72f0d15a
authored
11 years ago
by
wenqing
Browse files
Options
Downloads
Patches
Plain Diff
Remove one blank line in some comments of documentation according to Karstens comments
parent
11ef2376
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
MathLib/LinAlg/PETSc/PETScVector.cpp
+0
-1
0 additions, 1 deletion
MathLib/LinAlg/PETSc/PETScVector.cpp
MathLib/LinAlg/PETSc/PETScVector.h
+3
-6
3 additions, 6 deletions
MathLib/LinAlg/PETSc/PETScVector.h
with
3 additions
and
7 deletions
MathLib/LinAlg/PETSc/PETScVector.cpp
+
0
−
1
View file @
72f0d15a
...
...
@@ -59,7 +59,6 @@ PETScVector::PETScVector(const PETScVector &existing_vec, const bool deep_copy)
}
}
//-----------------------------------------------------------------
void
PETScVector
::
gatherLocalVectors
(
PetscScalar
local_array
[],
PetscScalar
global_array
[])
{
...
...
This diff is collapsed.
Click to expand it.
MathLib/LinAlg/PETSc/PETScVector.h
+
3
−
6
View file @
72f0d15a
...
...
@@ -39,7 +39,8 @@ class PETScVector
/*!
\brief Constructor
\param vec_size The size of the vector, either global or local
\param is_global_size The flag of the global size, the default is true
\param is_global_size The flag of the type of vec_size, i.e. whether it is a global size
or local size. The default is true.
*/
PETScVector
(
const
PetscInt
vec_size
,
const
bool
is_global_size
=
true
);
...
...
@@ -95,7 +96,6 @@ class PETScVector
/*!
Insert a single entry with value.
\param i Entry index
\param value Entry value
...
...
@@ -107,7 +107,6 @@ class PETScVector
/*!
Add a value to an entry.
\param i Number of the entry
\param value Value.
*/
...
...
@@ -154,7 +153,6 @@ class PETScVector
/*!
Get local vector, i.e. entries in the same rank
\param loc_vec Pointer to array where stores the local vector,
memory allocation is not needed
*/
...
...
@@ -167,7 +165,6 @@ class PETScVector
/*!
Get global vector
\param u Array to store the global vector. Memory allocation is needed in advance
*/
void
getGlobalVector
(
PetscScalar
u
[]);
...
...
@@ -176,7 +173,7 @@ class PETScVector
/// and it only get local value. Use it for only test purpose
PetscScalar
get
(
const
PetscInt
idx
)
const
{
double
x
;
PetscScalar
x
;
VecGetValues
(
_v
,
1
,
&
idx
,
&
x
);
return
x
;
}
...
...
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