Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lammps
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
Container Registry
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
multiscale
lammps
Commits
218bc92c
Commit
218bc92c
authored
7 years ago
by
Axel Kohlmeyer
Browse files
Options
Downloads
Patches
Plain Diff
make pre-processor defines for using libc's qsort() consistent
parent
ffa906de
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
src/dump.h
+2
-2
2 additions, 2 deletions
src/dump.h
src/irregular.h
+1
-1
1 addition, 1 deletion
src/irregular.h
with
3 additions
and
3 deletions
src/dump.h
+
2
−
2
View file @
218bc92c
...
@@ -33,7 +33,7 @@ class Dump : protected Pointers {
...
@@ -33,7 +33,7 @@ class Dump : protected Pointers {
int
comm_forward
;
// size of forward communication (0 if none)
int
comm_forward
;
// size of forward communication (0 if none)
int
comm_reverse
;
// size of reverse communication (0 if none)
int
comm_reverse
;
// size of reverse communication (0 if none)
#if defined(LMP_
USE_LIBC_
QSORT)
#if defined(LMP_QSORT)
// static variable across all Dump objects
// static variable across all Dump objects
static
Dump
*
dumpptr
;
// holds a ptr to Dump currently being used
static
Dump
*
dumpptr
;
// holds a ptr to Dump currently being used
#endif
#endif
...
@@ -135,7 +135,7 @@ class Dump : protected Pointers {
...
@@ -135,7 +135,7 @@ class Dump : protected Pointers {
void
pbc_allocate
();
void
pbc_allocate
();
void
sort
();
void
sort
();
#if defined(LMP_
USE_LIBC_
QSORT)
#if defined(LMP_QSORT)
static
int
idcompare
(
const
void
*
,
const
void
*
);
static
int
idcompare
(
const
void
*
,
const
void
*
);
static
int
bufcompare
(
const
void
*
,
const
void
*
);
static
int
bufcompare
(
const
void
*
,
const
void
*
);
static
int
bufcompare_reverse
(
const
void
*
,
const
void
*
);
static
int
bufcompare_reverse
(
const
void
*
,
const
void
*
);
...
...
This diff is collapsed.
Click to expand it.
src/irregular.h
+
1
−
1
View file @
218bc92c
...
@@ -21,7 +21,7 @@ namespace LAMMPS_NS {
...
@@ -21,7 +21,7 @@ namespace LAMMPS_NS {
class
Irregular
:
protected
Pointers
{
class
Irregular
:
protected
Pointers
{
public:
public:
#if defined(LMP_
USE_LIBC_
QSORT)
#if defined(LMP_QSORT)
// static variable across all Irregular objects, for qsort callback
// static variable across all Irregular objects, for qsort callback
static
int
*
proc_recv_copy
;
static
int
*
proc_recv_copy
;
...
...
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