Mercurial > fem-fenics-eugenio
comparison src/Makefile.in @ 259:598c5e9e0a9e
Add utilities for meshfunction
* src/save_mf.cc: save meshfunction to .xml
* src/MeshFunction.cc: import meshfunction from .xml
* src/meshfunction.h: add print method
author | Eugenio Gianniti <eugenio.gianniti@mail.polimi.it> |
---|---|
date | Wed, 06 Aug 2014 16:48:25 +0200 |
parents | ab35a8b0deef |
children | 6b37560b7cbb |
comparison
equal
deleted
inserted
replaced
258:ab35a8b0deef | 259:598c5e9e0a9e |
---|---|
31 | 31 |
32 OCTFILES= Mesh.oct \ | 32 OCTFILES= Mesh.oct \ |
33 DirichletBC.oct \ | 33 DirichletBC.oct \ |
34 Expression.oct \ | 34 Expression.oct \ |
35 Function.oct \ | 35 Function.oct \ |
36 save.oct \ | 36 save_func.oct \ |
37 save_mf.oct \ | |
37 assemble.oct \ | 38 assemble.oct \ |
38 assemble_system.oct \ | 39 assemble_system.oct \ |
39 plot_func.oct \ | 40 plot_func.oct \ |
40 plot_mesh.oct \ | 41 plot_mesh.oct \ |
41 SubSpace.oct \ | 42 SubSpace.oct \ |
42 feval.oct \ | 43 feval.oct \ |
43 interpolate.oct \ | 44 interpolate.oct \ |
44 is_master_node.oct \ | 45 is_master_node.oct \ |
45 barrier.oct | 46 barrier.oct \ |
47 MeshFunction.oct | |
46 | 48 |
47 | 49 |
48 all: $(OCTFILES) | 50 all: $(OCTFILES) |
49 | 51 |
50 fem_init_env.oct: fem_init_env.o | 52 fem_init_env.oct: fem_init_env.o |
56 Mesh.oct: Mesh.o | 58 Mesh.oct: Mesh.o |
57 CPPFLAGS=$(CPPFLAGS) $(MKOCTFILE) Mesh.o -o $@ $(LIBS) | 59 CPPFLAGS=$(CPPFLAGS) $(MKOCTFILE) Mesh.o -o $@ $(LIBS) |
58 | 60 |
59 Mesh.o: Mesh.cc mesh.h dolfin_compat.h meshfunction.h | 61 Mesh.o: Mesh.cc mesh.h dolfin_compat.h meshfunction.h |
60 CPPFLAGS=$(CPPFLAGS) $(MKOCTFILE) -c Mesh.cc -o $@ | 62 CPPFLAGS=$(CPPFLAGS) $(MKOCTFILE) -c Mesh.cc -o $@ |
63 | |
64 MeshFunction.oct: MeshFunction.o | |
65 CPPFLAGS=$(CPPFLAGS) $(MKOCTFILE) $< -o $@ $(LIBS) | |
66 | |
67 MeshFunction.o: MeshFunction.cc mesh.h dolfin_compat.h meshfunction.h | |
68 CPPFLAGS=$(CPPFLAGS) $(MKOCTFILE) -c $< -o $@ | |
61 | 69 |
62 fem_get_mesh.oct: fem_get_mesh.o | 70 fem_get_mesh.oct: fem_get_mesh.o |
63 CPPFLAGS=$(CPPFLAGS) $(MKOCTFILE) fem_get_mesh.o -o $@ $(LIBS) | 71 CPPFLAGS=$(CPPFLAGS) $(MKOCTFILE) fem_get_mesh.o -o $@ $(LIBS) |
64 | 72 |
65 fem_get_mesh.o: fem_get_mesh.cc | 73 fem_get_mesh.o: fem_get_mesh.cc |
95 libfemfenics_factories.a $(LIBS) | 103 libfemfenics_factories.a $(LIBS) |
96 | 104 |
97 assemble_system.o: assemble_system.cc form.h boundarycondition.h femfenics_factory.h dolfin_compat.h | 105 assemble_system.o: assemble_system.cc form.h boundarycondition.h femfenics_factory.h dolfin_compat.h |
98 CPPFLAGS=$(CPPFLAGS) $(MKOCTFILE) -c assemble_system.cc -o $@ | 106 CPPFLAGS=$(CPPFLAGS) $(MKOCTFILE) -c assemble_system.cc -o $@ |
99 | 107 |
100 save.oct: save.o mkfunction | 108 save_func.oct: save_func.o mkfunction |
101 CPPFLAGS=$(CPPFLAGS) $(MKOCTFILE) save.o -o ./@function/save.oct $(LIBS) | 109 CPPFLAGS=$(CPPFLAGS) $(MKOCTFILE) $< -o ./@function/save.oct $(LIBS) |
102 | 110 |
103 save.o: save.cc dolfin_compat.h | 111 save_func.o: save_func.cc function.h dolfin_compat.h |
104 CPPFLAGS=$(CPPFLAGS) $(MKOCTFILE) -c save.cc -o $@ | 112 CPPFLAGS=$(CPPFLAGS) $(MKOCTFILE) -c $< -o $@ |
113 | |
114 save_mf.oct: save_mf.o mkmeshfunction | |
115 CPPFLAGS=$(CPPFLAGS) $(MKOCTFILE) $< -o ./@meshfunction/save.oct $(LIBS) | |
116 | |
117 save_mf.o: save_mf.cc meshfunction.h | |
118 CPPFLAGS=$(CPPFLAGS) $(MKOCTFILE) -c $< -o $@ | |
105 | 119 |
106 mkfunction: | 120 mkfunction: |
107 mkdir -p @function | 121 mkdir -p @function |
122 | |
123 mkmeshfunction: | |
124 mkdir -p @meshfunction | |
108 | 125 |
109 mkmesh: | 126 mkmesh: |
110 mkdir -p @mesh | 127 mkdir -p @mesh |
111 | 128 |
112 plot_mesh.oct: plot_mesh.o mkmesh | 129 plot_mesh.oct: plot_mesh.o mkmesh |