46 |
|
# MPICH include path |
47 |
|
MPI_INC=@MPI_INC@ |
48 |
|
|
49 |
< |
# MPI F90 Module path |
50 |
< |
MPI_F90_MODS=@MPI_F90_MODS@ |
49 |
> |
# MODDIRFLAG |
50 |
> |
MODDIRFLAG=@MODDIRFLAG@ |
51 |
|
|
52 |
|
# Compiler dependent Fortran module |
53 |
|
FLIBS_EXTRA = @F90LIBS@ |
95 |
|
# C++ flags |
96 |
|
CXXFLAGS_C=@CXXFLAGS@ |
97 |
|
|
98 |
+ |
# C++ template flags |
99 |
+ |
OOPSE_TEMPLATE_FLAGS=@OOPSE_TEMPLATE_FLAGS@ |
100 |
+ |
|
101 |
+ |
# C++ namespace flags |
102 |
+ |
EXTRA_CC_FLAG=@EXTRA_CC_FLAG@ |
103 |
+ |
|
104 |
|
# Preprocessor flag for fortran |
105 |
|
PREPFLAG=@PREPFLAG@ |
106 |
|
|
108 |
|
PREPDEFFLAG=@PREPDEFFLAG@ |
109 |
|
|
110 |
|
# Fortran flags |
111 |
< |
FFLAGS_C=@F90FLAGS@ |
111 |
> |
FFLAGS_C=@FFLAGS@ |
112 |
|
|
113 |
+ |
# Fortran90 flags |
114 |
+ |
F90FLAGS_C=@F90FLAGS@ |
115 |
+ |
|
116 |
|
# LDFLAGS |
117 |
|
LDFLAGS=@LDFLAGS@ |
118 |
|
|
124 |
|
# include paths starting with "." are all relative to the SUBDIRS!!! |
125 |
|
|
126 |
|
INCLUDES= -I.. -I../../libBASS $(SPRNG_INC) |
127 |
< |
MPI_INCLUDES= -I$(MPI_INC) $(MPI_F90_MODS) |
127 |
> |
MPI_INCLUDES= -I$(MPI_INC) |
128 |
> |
F90_INCLUDES= -I/usr/local/include |
129 |
|
|
130 |
|
CFLAGS=$(CFLAGS_C) $(INCLUDES) $(DECLARE) $(MPI_INCLUDES) $(FUNCWRAP) |
131 |
< |
CXXFLAGS=$(CXXFLAGS_C) $(INCLUDES) $(DECLARE) $(FUNCWRAP) |
131 |
> |
CXXFLAGS=$(CXXFLAGS_C) $(OOPSE_TEMPLATE_FLAGS) $(EXTRA_CC_FLAG) $(INCLUDES) $(DECLARE) $(FUNCWRAP) |
132 |
|
FFLAGS=$(PREPFLAG) $(FFLAGS_C) |
133 |
+ |
F90FLAGS=$(PREPFLAG) $(F90FLAGS_C) $(F90_INCLUDES) |
134 |
|
DEPFLAGS=$(CFLAGS_C) -I. -I../libBASS $(SPRNG_INC) $(MPI_INCLUDES) |
135 |
|
|
136 |
|
MPI_CFLAGS=$(CFLAGS) $(MPI_INCLUDES) $(MPI_DECLARE) |
137 |
|
MPI_CXXFLAGS=$(CXXFLAGS) $(MPI_INCLUDES) $(MPI_DECLARE) |
138 |
< |
MPI_FFLAGS=$(FFLAGS) $(PREPDEFFLAG)$(MPI_DECLARE) $(MPI_INCLUDES) |
138 |
> |
MPI_F90FLAGS=$(F90FLAGS) $(PREPDEFFLAG)$(MPI_DECLARE) $(MPI_INCLUDES) |
139 |
|
|
140 |
< |
SRC_DIR := $(PWD) |
140 |
> |
SRC_DIR := .. |
141 |
|
|
142 |
|
# Then do the compile rules: |
143 |
|
|
144 |
|
obj/%.o: %.F90 |
145 |
< |
cd obj; $(F90) $(FFLAGS) -c $(SRC_DIR)/$< |
145 |
> |
cd obj; $(F90) $(F90FLAGS) -c $(SRC_DIR)/$< |
146 |
|
|
147 |
|
MPIobj/%.o: %.F90 |
148 |
< |
cd MPIobj; $(F90) $(MPI_FFLAGS) -c $(SRC_DIR)/$< |
148 |
> |
cd MPIobj; $(F90) $(MPI_F90FLAGS) -c $(SRC_DIR)/$< |
149 |
|
|
150 |
|
obj/%.o: %.cpp |
151 |
|
cd obj; $(CXX) $(CXXFLAGS) -c $(SRC_DIR)/$< |
163 |
|
|
164 |
|
C_FILES = \ |
165 |
|
$(DIR)/mpiForceField.c \ |
166 |
+ |
$(DIR)/MatVec3.c \ |
167 |
|
$(DIR)/fInfo.c |
168 |
|
|
169 |
|
CXX_FILES = \ |
170 |
< |
$(DIR)/Atom.cpp \ |
170 |
> |
$(DIR)/Atom.cpp \ |
171 |
> |
$(DIR)/AtomVisitor.cpp \ |
172 |
|
$(DIR)/Bend.cpp \ |
173 |
|
$(DIR)/BendExtensions.cpp \ |
174 |
|
$(DIR)/Bond.cpp \ |
175 |
|
$(DIR)/BondExtensions.cpp \ |
176 |
+ |
$(DIR)/CGFamilyMinimizer.cpp \ |
177 |
+ |
$(DIR)/CompositeVisitor.cpp \ |
178 |
|
$(DIR)/DirectionalAtom.cpp \ |
179 |
+ |
$(DIR)/DUFF.cpp \ |
180 |
+ |
$(DIR)/DumpReader.cpp \ |
181 |
|
$(DIR)/DumpWriter.cpp \ |
182 |
+ |
$(DIR)/EAM_FF.cpp \ |
183 |
|
$(DIR)/Exclude.cpp \ |
184 |
+ |
$(DIR)/ForceFields.cpp \ |
185 |
+ |
$(DIR)/fortranWrappers.cpp \ |
186 |
+ |
$(DIR)/GenericData.cpp \ |
187 |
+ |
$(DIR)/GhostBend.cpp \ |
188 |
|
$(DIR)/InitializeFromFile.cpp \ |
189 |
+ |
$(DIR)/Integrator.cpp \ |
190 |
|
$(DIR)/LJFF.cpp \ |
191 |
< |
$(DIR)/EAM_FF.cpp \ |
191 |
> |
$(DIR)/mdProfile.cpp \ |
192 |
> |
$(DIR)/Molecule.cpp \ |
193 |
> |
$(DIR)/mpiSimulation.cpp \ |
194 |
> |
$(DIR)/NPT.cpp \ |
195 |
> |
$(DIR)/NPTf.cpp \ |
196 |
> |
$(DIR)/NPTi.cpp \ |
197 |
> |
$(DIR)/NPTxyz.cpp \ |
198 |
> |
$(DIR)/NVT.cpp \ |
199 |
> |
$(DIR)/OOPSEMinimizer.cpp \ |
200 |
> |
$(DIR)/OtherVisitor.cpp \ |
201 |
> |
$(DIR)/PRCG.cpp \ |
202 |
> |
$(DIR)/randomSPRNG.cpp \ |
203 |
> |
$(DIR)/Restraints.cpp \ |
204 |
> |
$(DIR)/RigidBody.cpp \ |
205 |
> |
$(DIR)/RigidBodyVisitor.cpp \ |
206 |
> |
$(DIR)/SDMinimizer.cpp \ |
207 |
|
$(DIR)/SimInfo.cpp \ |
208 |
|
$(DIR)/SimSetup.cpp \ |
209 |
+ |
$(DIR)/SimState.cpp \ |
210 |
+ |
$(DIR)/SkipList.cpp \ |
211 |
|
$(DIR)/StatWriter.cpp \ |
212 |
< |
$(DIR)/Integrator.cpp \ |
212 |
> |
$(DIR)/StreamTokenizer.cpp \ |
213 |
> |
$(DIR)/StuntDouble.cpp \ |
214 |
|
$(DIR)/Thermo.cpp \ |
174 |
– |
$(DIR)/GhostBend.cpp \ |
215 |
|
$(DIR)/Torsion.cpp \ |
216 |
|
$(DIR)/TorsionExtensions.cpp \ |
217 |
< |
$(DIR)/DUFF.cpp \ |
218 |
< |
$(DIR)/randomSPRNG.cpp \ |
219 |
< |
$(DIR)/fortranWrappers.cpp \ |
180 |
< |
$(DIR)/ForceFields.cpp \ |
181 |
< |
$(DIR)/mpiSimulation.cpp \ |
182 |
< |
$(DIR)/Molecule.cpp \ |
183 |
< |
$(DIR)/SimState.cpp \ |
217 |
> |
$(DIR)/Utility.cpp \ |
218 |
> |
$(DIR)/WATER.cpp \ |
219 |
> |
$(DIR)/ZConsReader.cpp \ |
220 |
|
$(DIR)/ZConstraint.cpp \ |
221 |
< |
$(DIR)/ZConsWriter.cpp \ |
222 |
< |
$(DIR)/GenericData.cpp |
221 |
> |
$(DIR)/ZconsVisitor.cpp \ |
222 |
> |
$(DIR)/ZConsWriter.cpp |
223 |
|
|
224 |
|
F90_FILES= \ |
225 |
< |
$(DIR)/definitions_module.F90 \ |
226 |
< |
$(DIR)/status_module.F90 \ |
191 |
< |
$(DIR)/atype_module.F90 \ |
225 |
> |
$(DIR)/atype_module.F90 \ |
226 |
> |
$(DIR)/calc_charge_charge.F90 \ |
227 |
|
$(DIR)/calc_dipole_dipole.F90 \ |
193 |
– |
$(DIR)/calc_reaction_field.F90 \ |
194 |
– |
$(DIR)/calc_LJ_FF.F90 \ |
228 |
|
$(DIR)/calc_eam.F90 \ |
229 |
+ |
$(DIR)/calc_gb.F90 \ |
230 |
+ |
$(DIR)/calc_LJ_FF.F90 \ |
231 |
+ |
$(DIR)/calc_reaction_field.F90 \ |
232 |
|
$(DIR)/calc_sticky_pair.F90 \ |
233 |
+ |
$(DIR)/definitions_module.F90 \ |
234 |
|
$(DIR)/do_Forces.F90 \ |
198 |
– |
$(DIR)/vector_class.F90 \ |
199 |
– |
$(DIR)/simulation_module.F90 \ |
200 |
– |
$(DIR)/wrappers.F90 \ |
201 |
– |
$(DIR)/neighborLists.F90 \ |
202 |
– |
$(DIR)/calc_gb.F90 \ |
235 |
|
$(DIR)/force_globals.F90 \ |
236 |
|
$(DIR)/mpiSimulation_module.F90 \ |
237 |
< |
$(DIR)/notifyCutoffs.F90 |
237 |
> |
$(DIR)/neighborLists.F90 \ |
238 |
> |
$(DIR)/notifyCutoffs.F90 \ |
239 |
> |
$(DIR)/oopseMPI_module.F90 \ |
240 |
> |
$(DIR)/simulation_module.F90 \ |
241 |
> |
$(DIR)/status_module.F90 \ |
242 |
> |
$(DIR)/switch_module.F90 \ |
243 |
> |
$(DIR)/timing.F90 \ |
244 |
> |
$(DIR)/vector_class.F90 \ |
245 |
> |
$(DIR)/wrappers.F90 |
246 |
|
|
247 |
|
DIR:=. |
248 |
|
C_SRCS := $(C_FILES) |
359 |
|
obj/vector_class$(O) \ |
360 |
|
obj/force_globals$(O) \ |
361 |
|
obj/atype_module$(O) \ |
362 |
+ |
obj/switch_module$(O) \ |
363 |
|
obj/neighborLists$(O) |
364 |
|
|
365 |
|
obj/calc_LJ_FF$(O): ./calc_LJ_FF.F90 \ |
366 |
|
obj/definitions_module$(O) \ |
367 |
|
obj/atype_module$(O) \ |
368 |
+ |
obj/switch_module$(O) \ |
369 |
|
obj/simulation_module$(O) \ |
370 |
|
obj/vector_class$(O) \ |
371 |
|
obj/force_globals$(O) |
375 |
|
obj/vector_class$(O) \ |
376 |
|
obj/atype_module$(O) \ |
377 |
|
obj/simulation_module$(O) \ |
378 |
+ |
obj/status_module$(O) \ |
379 |
|
obj/force_globals$(O) |
380 |
|
|
381 |
|
obj/calc_dipole_dipole$(O): ./calc_dipole_dipole.F90 \ |
382 |
+ |
obj/definitions_module$(O) \ |
383 |
+ |
obj/atype_module$(O) \ |
384 |
+ |
obj/simulation_module$(O) \ |
385 |
+ |
obj/force_globals$(O) \ |
386 |
+ |
obj/status_module$(O) \ |
387 |
+ |
obj/vector_class$(O) |
388 |
+ |
|
389 |
+ |
obj/calc_charge_charge$(O): ./calc_charge_charge.F90 \ |
390 |
|
obj/definitions_module$(O) \ |
391 |
|
obj/atype_module$(O) \ |
392 |
|
obj/simulation_module$(O) \ |
393 |
|
obj/force_globals$(O) \ |
394 |
+ |
obj/status_module$(O) \ |
395 |
|
obj/vector_class$(O) |
396 |
|
|
397 |
|
obj/do_Forces$(O): ./do_Forces.F90 \ |
398 |
|
obj/definitions_module$(O) \ |
399 |
|
obj/atype_module$(O) \ |
400 |
+ |
obj/switch_module$(O) \ |
401 |
|
obj/simulation_module$(O) \ |
402 |
|
obj/neighborLists$(O) \ |
403 |
|
obj/calc_LJ_FF$(O) \ |
406 |
|
obj/calc_reaction_field$(O) \ |
407 |
|
obj/calc_gb$(O) \ |
408 |
|
obj/force_globals$(O) \ |
409 |
+ |
obj/status_module$(O) \ |
410 |
|
obj/vector_class$(O) |
411 |
|
|
412 |
|
obj/notifyCutoffs$(O): ./notifyCutoffs.F90 \ |
416 |
|
obj/calc_eam$(O) \ |
417 |
|
obj/calc_dipole_dipole$(O) \ |
418 |
|
obj/calc_reaction_field$(O) \ |
419 |
+ |
obj/switch_module$(O) \ |
420 |
|
obj/do_Forces$(O) |
421 |
|
|
422 |
|
obj/wrappers$(O): ./wrappers.F90 \ |
428 |
|
obj/do_Forces$(O) \ |
429 |
|
obj/notifyCutoffs$(O) |
430 |
|
|
431 |
+ |
obj/timing$(O): ./timing.F90 \ |
432 |
+ |
obj/do_Forces$(O) |
433 |
|
|
434 |
|
|
435 |
|
|
379 |
– |
|
380 |
– |
|
436 |
|
#MPI dependencies: |
437 |
|
|
438 |
|
MPIobj/definitions_module$(O): ./definitions_module.F90 |
441 |
|
|
442 |
|
MPIobj/status_module$(O): ./status_module.F90 |
443 |
|
|
444 |
< |
MPIobj/mpiSimulation_module$(O): ./mpiSimulation_module.F90 |
444 |
> |
MPIobj/oopseMPI_module$(O): ./oopseMPI_module.F90 |
445 |
|
|
446 |
+ |
MPIobj/mpiSimulation_module$(O): ./mpiSimulation_module.F90 \ |
447 |
+ |
MPIobj/oopseMPI_module$(O) |
448 |
+ |
|
449 |
|
MPIobj/force_globals$(O): ./force_globals.F90 \ |
450 |
|
MPIobj/mpiSimulation_module$(O) \ |
451 |
|
MPIobj/definitions_module$(O) |
486 |
|
MPIobj/force_globals$(O) \ |
487 |
|
MPIobj/mpiSimulation_module$(O) \ |
488 |
|
MPIobj/atype_module$(O) \ |
489 |
+ |
MPIobj/switch_module$(O) \ |
490 |
|
MPIobj/neighborLists$(O) |
491 |
|
|
492 |
|
MPIobj/calc_LJ_FF$(O): ./calc_LJ_FF.F90 \ |
493 |
|
MPIobj/definitions_module$(O) \ |
494 |
|
MPIobj/atype_module$(O) \ |
495 |
+ |
MPIobj/switch_module$(O) \ |
496 |
|
MPIobj/simulation_module$(O) \ |
497 |
|
MPIobj/mpiSimulation_module$(O) \ |
498 |
|
MPIobj/atype_module$(O) \ |
506 |
|
MPIobj/mpiSimulation_module$(O) \ |
507 |
|
MPIobj/vector_class$(O) \ |
508 |
|
MPIobj/atype_module$(O) \ |
509 |
+ |
MPIobj/status_module$(O) \ |
510 |
|
MPIobj/force_globals$(O) |
511 |
|
|
512 |
|
MPIobj/calc_dipole_dipole$(O): ./calc_dipole_dipole.F90 \ |
515 |
|
MPIobj/simulation_module$(O) \ |
516 |
|
MPIobj/mpiSimulation_module$(O) \ |
517 |
|
MPIobj/force_globals$(O) \ |
518 |
+ |
MPIobj/status_module$(O) \ |
519 |
|
MPIobj/vector_class$(O) |
520 |
|
|
521 |
+ |
MPIobj/calc_charge_charge$(O): ./calc_charge_charge.F90 \ |
522 |
+ |
MPIobj/definitions_module$(O) \ |
523 |
+ |
MPIobj/atype_module$(O) \ |
524 |
+ |
MPIobj/simulation_module$(O) \ |
525 |
+ |
MPIobj/mpiSimulation_module$(O) \ |
526 |
+ |
MPIobj/force_globals$(O) \ |
527 |
+ |
MPIobj/status_module$(O) \ |
528 |
+ |
MPIobj/vector_class$(O) |
529 |
+ |
|
530 |
|
MPIobj/do_Forces$(O): ./do_Forces.F90 \ |
531 |
|
MPIobj/definitions_module$(O) \ |
532 |
|
MPIobj/mpiSimulation_module$(O) \ |
533 |
|
MPIobj/atype_module$(O) \ |
534 |
+ |
MPIobj/switch_module$(O) \ |
535 |
|
MPIobj/simulation_module$(O) \ |
536 |
|
MPIobj/neighborLists$(O) \ |
537 |
|
MPIobj/calc_LJ_FF$(O) \ |
540 |
|
MPIobj/calc_reaction_field$(O) \ |
541 |
|
MPIobj/calc_gb$(O) \ |
542 |
|
MPIobj/force_globals$(O) \ |
543 |
+ |
MPIobj/status_module$(O) \ |
544 |
|
MPIobj/vector_class$(O) |
545 |
|
|
546 |
|
MPIobj/notifyCutoffs$(O): ./notifyCutoffs.F90 \ |
550 |
|
MPIobj/calc_eam$(O) \ |
551 |
|
MPIobj/calc_dipole_dipole$(O) \ |
552 |
|
MPIobj/calc_reaction_field$(O) \ |
553 |
+ |
MPIobj/switch_module$(O) \ |
554 |
|
MPIobj/do_Forces$(O) |
555 |
|
|
556 |
|
MPIobj/wrappers$(O): ./wrappers.F90 \ |
563 |
|
MPIobj/do_Forces$(O) \ |
564 |
|
MPIobj/notifyCutoffs$(O) |
565 |
|
|
566 |
+ |
MPIobj/timing$(O): ./timing.F90 \ |
567 |
+ |
MPIobj/do_Forces$(O) \ |
568 |
+ |
MPIobj/mpiSimulation_module$(O) |