2011-02-25 14:55:53 +05:30
|
|
|
# Makefile to compile the Material subroutine for BVP solution using spectral method
|
2011-01-07 18:26:45 +05:30
|
|
|
#
|
2011-02-25 14:55:53 +05:30
|
|
|
# use switch on make to determine precision, e.g make precision=single
|
|
|
|
# default is precision=double
|
|
|
|
# be sure to remove all librarys with different precision (make clean)
|
|
|
|
#
|
2011-01-07 18:26:45 +05:30
|
|
|
# Uses openmp to parallelise the material subroutines (set number of cores with "export MPIE_NUM_THREADS=n" to n)
|
|
|
|
# Uses linux threads to parallelise fftw3 (should also be possible with openmp)
|
|
|
|
# Besides of the f90 files written at MPIE, the two library files of fftw3 "libfftw3_threads.a" "libfftw3.a" are also needed
|
2011-02-25 14:55:53 +05:30
|
|
|
# Install fftw3 (v3.2.2 is tested) with "./configure --enable-threads --enable-float" and "make", "make install" is not needed
|
2011-01-07 18:26:45 +05:30
|
|
|
# as long as the two library files are copied to the source code directory.
|
added fftw3 as fft(library will not versioned, should be in a linkable folder) , did some corrections on the code, splitted main file up (allows use of makefile), added makefile
changes on mpie_spectral.f90:
new structure, changed variable names, now using defgrad instead of disgrad, cleaned up, removed augmented Lagrange.
ToDo: Implement Augmented Lagrange again (but then a working version), implement Large strain, think about complex-to real-transform backwards, try to implement MP-support
2010-08-27 22:09:38 +05:30
|
|
|
|
2011-07-13 22:03:12 +05:30
|
|
|
COMPILE_HEAP = -openmp -c -O3 -fpp -heap-arrays 500000000
|
|
|
|
COMPILE = -openmp -c -O3 -fpp
|
2011-03-29 13:25:38 +05:30
|
|
|
|
|
|
|
|
2011-02-25 14:55:53 +05:30
|
|
|
precision :=double
|
|
|
|
ifeq ($(precision),single)
|
2011-05-11 22:08:45 +05:30
|
|
|
DAMASK_spectral_single.exe: DAMASK_spectral_single.o CPFEM.a
|
|
|
|
ifort -openmp -o DAMASK_spectral_single.exe DAMASK_spectral_single.o CPFEM.a include/libfftw3f_threads.a include/libfftw3f.a constitutive.a advanced.a basics.a -lpthread
|
|
|
|
DAMASK_spectral_single.o: DAMASK_spectral_single.f90 CPFEM.o
|
2011-07-13 22:03:12 +05:30
|
|
|
ifort $(COMPILE_HEAP) DAMASK_spectral_single.f90
|
2011-02-25 14:55:53 +05:30
|
|
|
|
|
|
|
else
|
2011-05-11 22:08:45 +05:30
|
|
|
DAMASK_spectral.exe: DAMASK_spectral.o CPFEM.a
|
|
|
|
ifort -openmp -o DAMASK_spectral.exe DAMASK_spectral.o CPFEM.a include/libfftw3_threads.a include/libfftw3.a constitutive.a advanced.a basics.a -lpthread
|
|
|
|
DAMASK_spectral.o: DAMASK_spectral.f90 CPFEM.o
|
2011-07-13 22:03:12 +05:30
|
|
|
ifort $(COMPILE_HEAP) DAMASK_spectral.f90
|
2011-02-25 14:55:53 +05:30
|
|
|
endif
|
2011-02-21 20:07:38 +05:30
|
|
|
|
added fftw3 as fft(library will not versioned, should be in a linkable folder) , did some corrections on the code, splitted main file up (allows use of makefile), added makefile
changes on mpie_spectral.f90:
new structure, changed variable names, now using defgrad instead of disgrad, cleaned up, removed augmented Lagrange.
ToDo: Implement Augmented Lagrange again (but then a working version), implement Large strain, think about complex-to real-transform backwards, try to implement MP-support
2010-08-27 22:09:38 +05:30
|
|
|
CPFEM.a: CPFEM.o
|
|
|
|
ar rc CPFEM.a homogenization.o homogenization_RGC.o homogenization_isostrain.o crystallite.o CPFEM.o constitutive.o
|
|
|
|
|
|
|
|
CPFEM.o: CPFEM.f90 homogenization.o
|
2011-07-13 22:03:12 +05:30
|
|
|
ifort $(COMPILE_HEAP) CPFEM.f90
|
added fftw3 as fft(library will not versioned, should be in a linkable folder) , did some corrections on the code, splitted main file up (allows use of makefile), added makefile
changes on mpie_spectral.f90:
new structure, changed variable names, now using defgrad instead of disgrad, cleaned up, removed augmented Lagrange.
ToDo: Implement Augmented Lagrange again (but then a working version), implement Large strain, think about complex-to real-transform backwards, try to implement MP-support
2010-08-27 22:09:38 +05:30
|
|
|
homogenization.o: homogenization.f90 homogenization_isostrain.o homogenization_RGC.o crystallite.o
|
2011-07-13 22:03:12 +05:30
|
|
|
ifort $(COMPILE_HEAP) homogenization.f90
|
added fftw3 as fft(library will not versioned, should be in a linkable folder) , did some corrections on the code, splitted main file up (allows use of makefile), added makefile
changes on mpie_spectral.f90:
new structure, changed variable names, now using defgrad instead of disgrad, cleaned up, removed augmented Lagrange.
ToDo: Implement Augmented Lagrange again (but then a working version), implement Large strain, think about complex-to real-transform backwards, try to implement MP-support
2010-08-27 22:09:38 +05:30
|
|
|
homogenization_RGC.o: homogenization_RGC.f90 constitutive.a
|
2011-07-13 22:03:12 +05:30
|
|
|
ifort $(COMPILE_HEAP) homogenization_RGC.f90
|
added fftw3 as fft(library will not versioned, should be in a linkable folder) , did some corrections on the code, splitted main file up (allows use of makefile), added makefile
changes on mpie_spectral.f90:
new structure, changed variable names, now using defgrad instead of disgrad, cleaned up, removed augmented Lagrange.
ToDo: Implement Augmented Lagrange again (but then a working version), implement Large strain, think about complex-to real-transform backwards, try to implement MP-support
2010-08-27 22:09:38 +05:30
|
|
|
homogenization_isostrain.o: homogenization_isostrain.f90 basics.a advanced.a
|
2011-07-13 22:03:12 +05:30
|
|
|
ifort $(COMPILE_HEAP) homogenization_isostrain.f90
|
added fftw3 as fft(library will not versioned, should be in a linkable folder) , did some corrections on the code, splitted main file up (allows use of makefile), added makefile
changes on mpie_spectral.f90:
new structure, changed variable names, now using defgrad instead of disgrad, cleaned up, removed augmented Lagrange.
ToDo: Implement Augmented Lagrange again (but then a working version), implement Large strain, think about complex-to real-transform backwards, try to implement MP-support
2010-08-27 22:09:38 +05:30
|
|
|
crystallite.o: crystallite.f90 constitutive.a
|
2011-07-13 22:03:12 +05:30
|
|
|
ifort $(COMPILE_HEAP) crystallite.f90
|
added fftw3 as fft(library will not versioned, should be in a linkable folder) , did some corrections on the code, splitted main file up (allows use of makefile), added makefile
changes on mpie_spectral.f90:
new structure, changed variable names, now using defgrad instead of disgrad, cleaned up, removed augmented Lagrange.
ToDo: Implement Augmented Lagrange again (but then a working version), implement Large strain, think about complex-to real-transform backwards, try to implement MP-support
2010-08-27 22:09:38 +05:30
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
constitutive.a: constitutive.o
|
|
|
|
ar rc constitutive.a constitutive.o constitutive_titanmod.o constitutive_nonlocal.o constitutive_dislotwin.o constitutive_j2.o constitutive_phenopowerlaw.o basics.a advanced.a
|
|
|
|
|
|
|
|
constitutive.o: constitutive.f90 constitutive_titanmod.o constitutive_nonlocal.o constitutive_dislotwin.o constitutive_j2.o constitutive_phenopowerlaw.o
|
2011-07-13 22:03:12 +05:30
|
|
|
ifort $(COMPILE_HEAP) constitutive.f90
|
added fftw3 as fft(library will not versioned, should be in a linkable folder) , did some corrections on the code, splitted main file up (allows use of makefile), added makefile
changes on mpie_spectral.f90:
new structure, changed variable names, now using defgrad instead of disgrad, cleaned up, removed augmented Lagrange.
ToDo: Implement Augmented Lagrange again (but then a working version), implement Large strain, think about complex-to real-transform backwards, try to implement MP-support
2010-08-27 22:09:38 +05:30
|
|
|
|
|
|
|
constitutive_titanmod.o: constitutive_titanmod.f90 basics.a advanced.a
|
2011-07-13 22:03:12 +05:30
|
|
|
ifort $(COMPILE_HEAP) constitutive_titanmod.f90
|
added fftw3 as fft(library will not versioned, should be in a linkable folder) , did some corrections on the code, splitted main file up (allows use of makefile), added makefile
changes on mpie_spectral.f90:
new structure, changed variable names, now using defgrad instead of disgrad, cleaned up, removed augmented Lagrange.
ToDo: Implement Augmented Lagrange again (but then a working version), implement Large strain, think about complex-to real-transform backwards, try to implement MP-support
2010-08-27 22:09:38 +05:30
|
|
|
|
|
|
|
constitutive_nonlocal.o: constitutive_nonlocal.f90 basics.a advanced.a
|
2011-07-13 22:03:12 +05:30
|
|
|
ifort $(COMPILE_HEAP) constitutive_nonlocal.f90
|
added fftw3 as fft(library will not versioned, should be in a linkable folder) , did some corrections on the code, splitted main file up (allows use of makefile), added makefile
changes on mpie_spectral.f90:
new structure, changed variable names, now using defgrad instead of disgrad, cleaned up, removed augmented Lagrange.
ToDo: Implement Augmented Lagrange again (but then a working version), implement Large strain, think about complex-to real-transform backwards, try to implement MP-support
2010-08-27 22:09:38 +05:30
|
|
|
|
|
|
|
constitutive_dislotwin.o: constitutive_dislotwin.f90 basics.a advanced.a
|
2011-07-13 22:03:12 +05:30
|
|
|
ifort $(COMPILE_HEAP) constitutive_dislotwin.f90
|
added fftw3 as fft(library will not versioned, should be in a linkable folder) , did some corrections on the code, splitted main file up (allows use of makefile), added makefile
changes on mpie_spectral.f90:
new structure, changed variable names, now using defgrad instead of disgrad, cleaned up, removed augmented Lagrange.
ToDo: Implement Augmented Lagrange again (but then a working version), implement Large strain, think about complex-to real-transform backwards, try to implement MP-support
2010-08-27 22:09:38 +05:30
|
|
|
|
|
|
|
constitutive_j2.o: constitutive_j2.f90 basics.a advanced.a
|
2011-07-13 22:03:12 +05:30
|
|
|
ifort $(COMPILE_HEAP) constitutive_j2.f90
|
added fftw3 as fft(library will not versioned, should be in a linkable folder) , did some corrections on the code, splitted main file up (allows use of makefile), added makefile
changes on mpie_spectral.f90:
new structure, changed variable names, now using defgrad instead of disgrad, cleaned up, removed augmented Lagrange.
ToDo: Implement Augmented Lagrange again (but then a working version), implement Large strain, think about complex-to real-transform backwards, try to implement MP-support
2010-08-27 22:09:38 +05:30
|
|
|
|
|
|
|
constitutive_phenopowerlaw.o: constitutive_phenopowerlaw.f90 basics.a advanced.a
|
2011-07-13 22:03:12 +05:30
|
|
|
ifort $(COMPILE_HEAP) constitutive_phenopowerlaw.f90
|
added fftw3 as fft(library will not versioned, should be in a linkable folder) , did some corrections on the code, splitted main file up (allows use of makefile), added makefile
changes on mpie_spectral.f90:
new structure, changed variable names, now using defgrad instead of disgrad, cleaned up, removed augmented Lagrange.
ToDo: Implement Augmented Lagrange again (but then a working version), implement Large strain, think about complex-to real-transform backwards, try to implement MP-support
2010-08-27 22:09:38 +05:30
|
|
|
|
|
|
|
|
2011-02-25 18:11:46 +05:30
|
|
|
|
added fftw3 as fft(library will not versioned, should be in a linkable folder) , did some corrections on the code, splitted main file up (allows use of makefile), added makefile
changes on mpie_spectral.f90:
new structure, changed variable names, now using defgrad instead of disgrad, cleaned up, removed augmented Lagrange.
ToDo: Implement Augmented Lagrange again (but then a working version), implement Large strain, think about complex-to real-transform backwards, try to implement MP-support
2010-08-27 22:09:38 +05:30
|
|
|
advanced.a: lattice.o
|
|
|
|
ar rc advanced.a FEsolving.o mesh.o material.o lattice.o
|
2011-02-25 18:11:46 +05:30
|
|
|
|
added fftw3 as fft(library will not versioned, should be in a linkable folder) , did some corrections on the code, splitted main file up (allows use of makefile), added makefile
changes on mpie_spectral.f90:
new structure, changed variable names, now using defgrad instead of disgrad, cleaned up, removed augmented Lagrange.
ToDo: Implement Augmented Lagrange again (but then a working version), implement Large strain, think about complex-to real-transform backwards, try to implement MP-support
2010-08-27 22:09:38 +05:30
|
|
|
|
|
|
|
lattice.o: lattice.f90 material.o
|
2011-07-13 22:03:12 +05:30
|
|
|
ifort $(COMPILE_HEAP) lattice.f90
|
added fftw3 as fft(library will not versioned, should be in a linkable folder) , did some corrections on the code, splitted main file up (allows use of makefile), added makefile
changes on mpie_spectral.f90:
new structure, changed variable names, now using defgrad instead of disgrad, cleaned up, removed augmented Lagrange.
ToDo: Implement Augmented Lagrange again (but then a working version), implement Large strain, think about complex-to real-transform backwards, try to implement MP-support
2010-08-27 22:09:38 +05:30
|
|
|
material.o: material.f90 mesh.o
|
2011-07-13 22:03:12 +05:30
|
|
|
ifort $(COMPILE_HEAP) material.f90
|
added fftw3 as fft(library will not versioned, should be in a linkable folder) , did some corrections on the code, splitted main file up (allows use of makefile), added makefile
changes on mpie_spectral.f90:
new structure, changed variable names, now using defgrad instead of disgrad, cleaned up, removed augmented Lagrange.
ToDo: Implement Augmented Lagrange again (but then a working version), implement Large strain, think about complex-to real-transform backwards, try to implement MP-support
2010-08-27 22:09:38 +05:30
|
|
|
mesh.o: mesh.f90 FEsolving.o
|
2011-07-13 22:03:12 +05:30
|
|
|
ifort $(COMPILE_HEAP) mesh.f90
|
added fftw3 as fft(library will not versioned, should be in a linkable folder) , did some corrections on the code, splitted main file up (allows use of makefile), added makefile
changes on mpie_spectral.f90:
new structure, changed variable names, now using defgrad instead of disgrad, cleaned up, removed augmented Lagrange.
ToDo: Implement Augmented Lagrange again (but then a working version), implement Large strain, think about complex-to real-transform backwards, try to implement MP-support
2010-08-27 22:09:38 +05:30
|
|
|
FEsolving.o: FEsolving.f90 basics.a
|
2011-07-13 22:03:12 +05:30
|
|
|
ifort $(COMPILE_HEAP) FEsolving.f90
|
added fftw3 as fft(library will not versioned, should be in a linkable folder) , did some corrections on the code, splitted main file up (allows use of makefile), added makefile
changes on mpie_spectral.f90:
new structure, changed variable names, now using defgrad instead of disgrad, cleaned up, removed augmented Lagrange.
ToDo: Implement Augmented Lagrange again (but then a working version), implement Large strain, think about complex-to real-transform backwards, try to implement MP-support
2010-08-27 22:09:38 +05:30
|
|
|
|
2011-02-25 14:55:53 +05:30
|
|
|
ifeq ($(precision),single)
|
|
|
|
basics.a: debug.o math.o
|
2011-05-11 22:08:45 +05:30
|
|
|
ar rc basics.a debug.o math.o numerics.o IO.o DAMASK_spectral_interface.o prec_single.o
|
2011-02-25 14:55:53 +05:30
|
|
|
else
|
added fftw3 as fft(library will not versioned, should be in a linkable folder) , did some corrections on the code, splitted main file up (allows use of makefile), added makefile
changes on mpie_spectral.f90:
new structure, changed variable names, now using defgrad instead of disgrad, cleaned up, removed augmented Lagrange.
ToDo: Implement Augmented Lagrange again (but then a working version), implement Large strain, think about complex-to real-transform backwards, try to implement MP-support
2010-08-27 22:09:38 +05:30
|
|
|
basics.a: debug.o math.o
|
2011-05-11 22:08:45 +05:30
|
|
|
ar rc basics.a debug.o math.o numerics.o IO.o DAMASK_spectral_interface.o prec.o
|
2011-02-25 14:55:53 +05:30
|
|
|
endif
|
added fftw3 as fft(library will not versioned, should be in a linkable folder) , did some corrections on the code, splitted main file up (allows use of makefile), added makefile
changes on mpie_spectral.f90:
new structure, changed variable names, now using defgrad instead of disgrad, cleaned up, removed augmented Lagrange.
ToDo: Implement Augmented Lagrange again (but then a working version), implement Large strain, think about complex-to real-transform backwards, try to implement MP-support
2010-08-27 22:09:38 +05:30
|
|
|
|
|
|
|
debug.o: debug.f90 numerics.o
|
2011-07-13 22:03:12 +05:30
|
|
|
ifort $(COMPILE) debug.f90
|
added fftw3 as fft(library will not versioned, should be in a linkable folder) , did some corrections on the code, splitted main file up (allows use of makefile), added makefile
changes on mpie_spectral.f90:
new structure, changed variable names, now using defgrad instead of disgrad, cleaned up, removed augmented Lagrange.
ToDo: Implement Augmented Lagrange again (but then a working version), implement Large strain, think about complex-to real-transform backwards, try to implement MP-support
2010-08-27 22:09:38 +05:30
|
|
|
math.o: math.f90 numerics.o
|
2011-07-13 22:03:12 +05:30
|
|
|
ifort $(COMPILE) math.f90
|
added fftw3 as fft(library will not versioned, should be in a linkable folder) , did some corrections on the code, splitted main file up (allows use of makefile), added makefile
changes on mpie_spectral.f90:
new structure, changed variable names, now using defgrad instead of disgrad, cleaned up, removed augmented Lagrange.
ToDo: Implement Augmented Lagrange again (but then a working version), implement Large strain, think about complex-to real-transform backwards, try to implement MP-support
2010-08-27 22:09:38 +05:30
|
|
|
|
|
|
|
numerics.o: numerics.f90 IO.o
|
2011-07-13 22:03:12 +05:30
|
|
|
ifort $(COMPILE) numerics.f90
|
2011-05-11 22:08:45 +05:30
|
|
|
IO.o: IO.f90 DAMASK_spectral_interface.o
|
2011-07-13 22:03:12 +05:30
|
|
|
ifort $(COMPILE) IO.f90
|
2011-02-25 18:11:46 +05:30
|
|
|
|
2011-02-25 14:55:53 +05:30
|
|
|
ifeq ($(precision),single)
|
2011-05-11 22:08:45 +05:30
|
|
|
DAMASK_spectral_interface.o: DAMASK_spectral_interface.f90 prec_single.o
|
2011-07-13 22:03:12 +05:30
|
|
|
ifort $(COMPILE) DAMASK_spectral_interface.f90
|
2011-02-25 14:55:53 +05:30
|
|
|
prec_single.o: prec_single.f90
|
2011-07-13 22:03:12 +05:30
|
|
|
ifort $(COMPILE) prec_single.f90
|
2011-02-25 14:55:53 +05:30
|
|
|
else
|
2011-05-11 22:08:45 +05:30
|
|
|
DAMASK_spectral_interface.o: DAMASK_spectral_interface.f90 prec.o
|
2011-07-13 22:03:12 +05:30
|
|
|
ifort $(COMPILE) DAMASK_spectral_interface.f90
|
added fftw3 as fft(library will not versioned, should be in a linkable folder) , did some corrections on the code, splitted main file up (allows use of makefile), added makefile
changes on mpie_spectral.f90:
new structure, changed variable names, now using defgrad instead of disgrad, cleaned up, removed augmented Lagrange.
ToDo: Implement Augmented Lagrange again (but then a working version), implement Large strain, think about complex-to real-transform backwards, try to implement MP-support
2010-08-27 22:09:38 +05:30
|
|
|
prec.o: prec.f90
|
2011-07-13 22:03:12 +05:30
|
|
|
ifort $(COMPILE) prec.f90
|
2011-02-25 14:55:53 +05:30
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
clean:
|
2011-07-13 22:03:12 +05:30
|
|
|
rm -rf *.o
|
2011-02-25 18:11:46 +05:30
|
|
|
rm -rf *.mod
|
2011-07-13 22:03:12 +05:30
|
|
|
rm -rf *.a
|