Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
openfpm_pdata
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
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
Sbalzarini Lab
Software
Parallel Computing
OpenFPM
openfpm_pdata
Commits
0e13d7cf
Commit
0e13d7cf
authored
8 years ago
by
Pietro Incardona
Browse files
Options
Downloads
Patches
Plain Diff
Fixing example compilation
parent
baa5309a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
example/Plot/2_PSE_convergence/Makefile
+12
-9
12 additions, 9 deletions
example/Plot/2_PSE_convergence/Makefile
example/Vector/5_molecular_dynamic_sym/Makefile
+1
-1
1 addition, 1 deletion
example/Vector/5_molecular_dynamic_sym/Makefile
with
13 additions
and
10 deletions
example/Plot/2_PSE_convergence/Makefile
+
12
−
9
View file @
0e13d7cf
include
../../example.mk
#### this example work only if you have quadmath activated ###
#### (only if -lquadmath work) uncomment to reactivate
CC
=
mpic++
LDIR
=
OBJ
=
main.o
#
OBJ = main.o
%.o
:
%.cpp
$(
CC
)
-O3
-g3
-c
--std
=
c++11
-o
$@
$<
$(
INCLUDE_PATH
)
#
%.o: %.cpp
#
$(CC) -O3 -g3 -c --std=c++11 -o $@ $< $(INCLUDE_PATH)
conv_p
:
$(OBJ)
$(
CC
)
-o
$@
$^
$(
CFLAGS
)
$(
LIBS_PATH
)
$(
LIBS
)
#
conv_p: $(OBJ)
#
$(CC) -o $@ $^ $(CFLAGS) $(LIBS_PATH) $(LIBS)
-lquadmath
all
:
conv_p
#
all: conv_p
run
:
all
source
$$
HOME/openfpm_vars
;
./conv_p
#
run: all
#
source $$HOME/openfpm_vars; ./conv_p
.PHONY
:
clean all run
#
.PHONY: clean all run
clean
:
rm
-f
*
.o
*
~ core conv_p
...
...
This diff is collapsed.
Click to expand it.
example/Vector/5_molecular_dynamic_sym/Makefile
+
1
−
1
View file @
0e13d7cf
...
...
@@ -17,7 +17,7 @@ md_sym: $(OBJ_DORD)
run
:
md_sym
source
$$
HOME/openfpm_vars
;
mpirun
-np
3 ./md_sym
.PHONY
:
clean all run
md_sym
.PHONY
:
clean all run
clean
:
rm
-f
*
.o
*
~ core md_sym
...
...
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