Subversion Repositories slepc-dev

Rev

Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
6 dsic.upv.es!jroman 1
#
2
# This is the makefile for installing SLEPc. See the Users Manual
3
# for directions on installing SLEPc.
4
#
1378 slepc 5
#  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1672 slepc 6
#  SLEPc - Scalable Library for Eigenvalue Problem Computations
2116 eromero 7
#  Copyright (c) 2002-2010, Universidad Politecnica de Valencia, Spain
1378 slepc 8
#
1672 slepc 9
#  This file is part of SLEPc.
10
#
11
#  SLEPc is free software: you can redistribute it and/or modify it under  the
12
#  terms of version 3 of the GNU Lesser General Public License as published by
13
#  the Free Software Foundation.
14
#
15
#  SLEPc  is  distributed in the hope that it will be useful, but WITHOUT  ANY
16
#  WARRANTY;  without even the implied warranty of MERCHANTABILITY or  FITNESS
17
#  FOR  A  PARTICULAR PURPOSE. See the GNU Lesser General Public  License  for
18
#  more details.
19
#
20
#  You  should have received a copy of the GNU Lesser General  Public  License
21
#  along with SLEPc. If not, see <http://www.gnu.org/licenses/>.
1378 slepc 22
#  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
23
#
24
 
6 dsic.upv.es!jroman 25
ALL: all
26
LOCDIR = .
27
DIRS   = src include docs
28
 
1871 antodo 29
# next line defines SLEPC_DIR, PETSC_DIR and PETSC_ARCH if they are not set
30
include ./${PETSC_ARCH}/conf/slepcvariables
1523 slepc 31
include ${SLEPC_DIR}/conf/slepc_common
6 dsic.upv.es!jroman 32
 
33
#
34
# Basic targets to build SLEPc libraries.
35
# all: builds the C/C++ and Fortran libraries
36
all:
1871 antodo 37
	@${OMAKE} PETSC_ARCH=${PETSC_ARCH} PETSC_DIR=${PETSC_DIR} SLEPC_DIR=${SLEPC_DIR} chkpetsc_dir
38
	@${OMAKE} PETSC_ARCH=${PETSC_ARCH} PETSC_DIR=${PETSC_DIR} SLEPC_DIR=${SLEPC_DIR} chkslepc_dir
39
	-@${OMAKE} PETSC_ARCH=${PETSC_ARCH} PETSC_DIR=${PETSC_DIR} SLEPC_DIR=${SLEPC_DIR} all_build 2>&1 | tee ${PETSC_ARCH}/conf/make.log
1523 slepc 40
	-@egrep -i "( error | error:)" ${PETSC_ARCH}/conf/make.log > /dev/null; if [ "$$?" = "0" ]; then \
785 dsic.upv.es!antodo 41
           echo "********************************************************************"; \
1523 slepc 42
           echo "  Error during compile, check ${PETSC_ARCH}/conf/make.log"; \
43
           echo "  Send all contents of ${PETSC_ARCH}/conf to slepc-maint@grycap.upv.es";\
785 dsic.upv.es!antodo 44
           echo "********************************************************************"; \
1557 slepc 45
           exit 1; \
1611 slepc 46
	 elif [ "${SLEPC_INSTALL_DIR}" = "${SLEPC_DIR}/${PETSC_ARCH}" ]; then \
1567 slepc 47
           echo "Now to check if the libraries are working do: make test";\
48
           echo "=========================================";\
1557 slepc 49
	 else \
1567 slepc 50
	   echo "Now to install the libraries do: make install";\
51
	   echo "=========================================";\
1557 slepc 52
	 fi
785 dsic.upv.es!antodo 53
 
1717 jroman 54
all_build: chk_petsc_dir chk_slepc_dir chklib_dir info deletelibs build shared_nomesg_noinstall slepc4py_noinstall
6 dsic.upv.es!jroman 55
#
56
# Prints information about the system and version of SLEPc being compiled
57
#
58
info:
59
	-@echo "=========================================="
60
	-@echo On `date` on `hostname`
61
	-@echo Machine characteristics: `uname -a`
62
	-@echo "-----------------------------------------"
785 dsic.upv.es!antodo 63
	-@echo "Using SLEPc directory: ${SLEPC_DIR}"
64
	-@echo "Using PETSc directory: ${PETSC_DIR}"
65
	-@echo "Using PETSc arch: ${PETSC_ARCH}"
6 dsic.upv.es!jroman 66
	-@echo "-----------------------------------------"
785 dsic.upv.es!antodo 67
	-@grep "define SLEPC_VERSION" ${SLEPC_DIR}/include/slepcversion.h | ${SED} "s/........//"
6 dsic.upv.es!jroman 68
	-@echo "-----------------------------------------"
785 dsic.upv.es!antodo 69
	-@grep "define PETSC_VERSION" ${PETSC_DIR}/include/petscversion.h | ${SED} "s/........//"
70
	-@echo "-----------------------------------------"
1078 slepc 71
	-@echo "Using PETSc configure options " ${CONFIGURE_OPTIONS}
72
	-@echo "Using SLEPc configuration flags:"
1523 slepc 73
	-@cat ${SLEPC_DIR}/${PETSC_ARCH}/conf/slepcvariables
1078 slepc 74
	-@echo "Using PETSc configuration flags:"
1527 slepc 75
	-@if [ -e ${PETSC_DIR}/${PETSC_ARCH}/include/petscconf.h ]; then \
76
	   grep "\#define " ${PETSC_DIR}/${PETSC_ARCH}/include/petscconf.h; \
77
          else \
78
	   grep "\#define " ${PETSC_DIR}/include/petscconf.h; \
79
          fi
785 dsic.upv.es!antodo 80
	-@echo "-----------------------------------------"
81
	-@echo "Using include paths: ${SLEPC_INCLUDE} ${PETSC_INCLUDE}"
82
	-@echo "------------------------------------------"
1042 slepc 83
	-@echo "Using C/C++ compiler: ${PCC} ${PCC_FLAGS} ${COPTFLAGS} ${CFLAGS}"
785 dsic.upv.es!antodo 84
	-@echo "C/C++ Compiler version: " `${CCV}`
85
	-@if [ "${FC}" != "" ]; then \
1042 slepc 86
	   echo "Using Fortran compiler: ${FC} ${FC_FLAGS} ${FFLAGS} ${FPP_FLAGS}";\
785 dsic.upv.es!antodo 87
	   echo "Fortran Compiler version: " `${FCV}`;\
88
         fi
6 dsic.upv.es!jroman 89
	-@echo "-----------------------------------------"
1042 slepc 90
	-@echo "Using C/C++ linker: ${PCC_LINKER}"
785 dsic.upv.es!antodo 91
	-@if [ "${FC}" != "" ]; then \
92
	   echo "Using Fortran linker: ${FC_LINKER}";\
93
         fi
6 dsic.upv.es!jroman 94
	-@echo "-----------------------------------------"
785 dsic.upv.es!antodo 95
	-@echo "Using libraries: ${SLEPC_LIB}"
6 dsic.upv.es!jroman 96
	-@echo "------------------------------------------"
785 dsic.upv.es!antodo 97
	-@echo "Using mpirun: ${MPIRUN}"
6 dsic.upv.es!jroman 98
	-@echo "=========================================="
99
 
100
#
101
# Builds the SLEPc libraries
102
#
785 dsic.upv.es!antodo 103
build:
6 dsic.upv.es!jroman 104
	-@echo "BEGINNING TO COMPILE SLEPc LIBRARIES IN ALL DIRECTORIES"
105
	-@echo "========================================="
1871 antodo 106
	-@${OMAKE} PETSC_ARCH=${PETSC_ARCH} PETSC_DIR=${PETSC_DIR} SLEPC_DIR=${SLEPC_DIR} ACTION=libfast  tree
785 dsic.upv.es!antodo 107
	${RANLIB} ${SLEPC_LIB_DIR}/*.${AR_LIB_SUFFIX}
6 dsic.upv.es!jroman 108
	-@echo "Completed building SLEPc libraries"
109
	-@echo "========================================="
110
 
1523 slepc 111
# Simple test examples for checking a correct installation
1098 slepc 112
test:
113
	-@echo "Running test examples to verify correct installation"
1413 slepc 114
	@cd src/examples; ${OMAKE} PETSC_ARCH=${PETSC_ARCH} PETSC_DIR=${PETSC_DIR} SLEPC_DIR=${SLEPC_DIR} testex1
115
	@if [ "${FC}" != "" ]; then cd src/examples; ${OMAKE} PETSC_ARCH=${PETSC_ARCH} SLEPC_DIR=${SLEPC_DIR} PETSC_DIR=${PETSC_DIR} testex1f; fi;
1098 slepc 116
	-@echo "Completed test examples"
117
 
1523 slepc 118
# Builds SLEPc test examples for C
801 dsic.upv.es!antodo 119
testexamples: info
6 dsic.upv.es!jroman 120
	-@echo "BEGINNING TO COMPILE AND RUN SLEPc TEST EXAMPLES"
121
	-@echo "Due to different numerical round-off on certain"
122
	-@echo "machines some of the numbers may not match exactly."
123
	-@echo "========================================="
1871 antodo 124
	-@${OMAKE} PETSC_ARCH=${PETSC_ARCH} PETSC_DIR=${PETSC_DIR} SLEPC_DIR=${SLEPC_DIR} \
932 dsic.upv.es!antodo 125
	   ACTION=testexamples_C  tree
6 dsic.upv.es!jroman 126
	-@echo "Completed compiling and running test examples"
127
	-@echo "========================================="
128
 
1523 slepc 129
# Builds SLEPc test examples for Fortran
801 dsic.upv.es!antodo 130
testfortran: info
6 dsic.upv.es!jroman 131
	-@echo "BEGINNING TO COMPILE AND RUN SLEPc FORTRAN TEST EXAMPLES"
132
	-@echo "========================================="
133
	-@echo "Due to different numerical round-off on certain"
134
	-@echo "machines or the way Fortran formats numbers"
135
	-@echo "some of the results may not match exactly."
136
	-@echo "========================================="
801 dsic.upv.es!antodo 137
	-@if [ "${FC}" != "" ]; then \
1871 antodo 138
	    ${OMAKE} PETSC_ARCH=${PETSC_ARCH} PETSC_DIR=${PETSC_DIR} SLEPC_DIR=${SLEPC_DIR} \
139
	      ACTION=testexamples_Fortran  tree ; \
604 dsic.upv.es!antodo 140
            echo "Completed compiling and running Fortran test examples"; \
141
          else \
142
            echo "Error: No FORTRAN compiler available"; \
143
          fi
144
	-@
6 dsic.upv.es!jroman 145
	-@echo "========================================="
146
 
1523 slepc 147
# Uni-processor examples in C
801 dsic.upv.es!antodo 148
testexamples_uni: info
6 dsic.upv.es!jroman 149
	-@echo "BEGINNING TO COMPILE AND RUN TEST UNI-PROCESSOR EXAMPLES"
150
	-@echo "Due to different numerical round-off on certain"
151
	-@echo "machines some of the numbers may not match exactly."
152
	-@echo "========================================="
1871 antodo 153
	-@${OMAKE} PETSC_ARCH=${PETSC_ARCH} PETSC_DIR=${PETSC_DIR} SLEPC_DIR=${SLEPC_DIR} \
932 dsic.upv.es!antodo 154
	   ACTION=testexamples_C_X11_MPIUni  tree
6 dsic.upv.es!jroman 155
	-@echo "Completed compiling and running uniprocessor test examples"
156
	-@echo "========================================="
804 dsic.upv.es!antodo 157
 
1523 slepc 158
# Uni-processor examples in Fortran
801 dsic.upv.es!antodo 159
testfortran_uni: info
6 dsic.upv.es!jroman 160
	-@echo "BEGINNING TO COMPILE AND RUN TEST UNI-PROCESSOR FORTRAN EXAMPLES"
161
	-@echo "Due to different numerical round-off on certain"
162
	-@echo "machines some of the numbers may not match exactly."
163
	-@echo "========================================="
801 dsic.upv.es!antodo 164
	-@if [ "${FC}" != "" ]; then \
1871 antodo 165
            ${OMAKE} PETSC_ARCH=${PETSC_ARCH} PETSC_DIR=${PETSC_DIR} SLEPC_DIR=${SLEPC_DIR}
166
	      ACTION=testexamples_Fortran_MPIUni  tree; \
1523 slepc 167
            echo "Completed compiling and running uniprocessor Fortran test examples"; \
604 dsic.upv.es!antodo 168
          else \
169
            echo "Error: No FORTRAN compiler available"; \
170
          fi
171
	-@
6 dsic.upv.es!jroman 172
	-@echo "========================================="
173
 
174
# Ranlib on the libraries
785 dsic.upv.es!antodo 175
ranlib:
6 dsic.upv.es!jroman 176
	${RANLIB} ${SLEPC_LIB_DIR}/*.${LIB_SUFFIX}
177
 
178
# Deletes SLEPc libraries
785 dsic.upv.es!antodo 179
deletelibs:
1714 jroman 180
	-${RM} -f ${SLEPC_LIB_DIR}/libslepc*.*
6 dsic.upv.es!jroman 181
 
785 dsic.upv.es!antodo 182
# Cleans up build
183
allclean: deletelibs
1871 antodo 184
	-@${OMAKE} PETSC_ARCH=${PETSC_ARCH} PETSC_DIR=${PETSC_DIR} SLEPC_DIR=${SLEPC_DIR} ACTION=clean tree
6 dsic.upv.es!jroman 185
 
186
#
785 dsic.upv.es!antodo 187
# Check if PETSC_DIR variable specified is valid
188
#
189
chk_petsc_dir:
190
	@if [ ! -f ${PETSC_DIR}/include/petscversion.h ]; then \
191
	  echo "Incorrect PETSC_DIR specified: ${PETSC_DIR}!"; \
192
	  echo "You need to use / to separate directories, not \\!"; \
193
	  echo "Aborting build"; \
194
	  false; fi
195
#
6 dsic.upv.es!jroman 196
# Check if SLEPC_DIR variable specified is valid
197
#
198
chk_slepc_dir:
199
	@if [ ! -f ${SLEPC_DIR}/include/slepcversion.h ]; then \
200
	  echo "Incorrect SLEPC_DIR specified: ${SLEPC_DIR}!"; \
201
	  echo "You need to use / to separate directories, not \\!"; \
202
	  echo "Aborting build"; \
203
	  false; fi
204
 
1366 slepc 205
install:
1611 slepc 206
	-@if [ "${PETSC_ARCH}" = "" ]; then \
1527 slepc 207
	  echo "PETSC_ARCH is undefined";\
208
	elif [ "${SLEPC_INSTALL_DIR}" = "${SLEPC_DIR}/${PETSC_ARCH}" ]; then \
1366 slepc 209
	  echo "Install directory is current directory; nothing needs to be done";\
210
        else \
211
	  echo Installing SLEPc at ${SLEPC_INSTALL_DIR};\
212
          if [ ! -d `dirname ${SLEPC_INSTALL_DIR}` ]; then \
213
	    ${MKDIR} `dirname ${SLEPC_INSTALL_DIR}` ; \
214
          fi;\
215
          if [ ! -d ${SLEPC_INSTALL_DIR} ]; then \
216
	    ${MKDIR} ${SLEPC_INSTALL_DIR} ; \
217
          fi;\
1372 slepc 218
          if [ ! -d ${SLEPC_INSTALL_DIR}/include ]; then \
219
	    ${MKDIR} ${SLEPC_INSTALL_DIR}/include ; \
220
          fi;\
221
          cp -f include/*.h ${SLEPC_INSTALL_DIR}/include;\
1558 slepc 222
          if [ -f ${PETSC_ARCH}/include/slepceps.mod ]; then \
223
            cp -f ${PETSC_ARCH}/include/*.mod ${SLEPC_INSTALL_DIR}/include;\
224
          fi;\
1372 slepc 225
          if [ ! -d ${SLEPC_INSTALL_DIR}/include/finclude ]; then \
226
	    ${MKDIR} ${SLEPC_INSTALL_DIR}/include/finclude ; \
227
          fi;\
1555 slepc 228
          cp -f include/finclude/*.h* ${SLEPC_INSTALL_DIR}/include/finclude;\
229
          if [ ! -d ${SLEPC_INSTALL_DIR}/include/finclude/ftn-auto ]; then \
230
	    ${MKDIR} ${SLEPC_INSTALL_DIR}/include/finclude/ftn-auto ; \
231
          fi;\
1559 slepc 232
          cp -f include/finclude/ftn-auto/*.h90 ${SLEPC_INSTALL_DIR}/include/finclude/ftn-auto;\
1555 slepc 233
          if [ ! -d ${SLEPC_INSTALL_DIR}/include/finclude/ftn-custom ]; then \
234
	    ${MKDIR} ${SLEPC_INSTALL_DIR}/include/finclude/ftn-custom ; \
235
          fi;\
1559 slepc 236
          cp -f include/finclude/ftn-custom/*.h90 ${SLEPC_INSTALL_DIR}/include/finclude/ftn-custom;\
1527 slepc 237
          if [ ! -d ${SLEPC_INSTALL_DIR}/include/private ]; then \
238
	    ${MKDIR} ${SLEPC_INSTALL_DIR}/include/private ; \
239
          fi;\
240
          cp -f include/finclude/*.h ${SLEPC_INSTALL_DIR}/include/private;\
1523 slepc 241
          if [ ! -d ${SLEPC_INSTALL_DIR}/conf ]; then \
242
	    ${MKDIR} ${SLEPC_INSTALL_DIR}/conf ; \
1366 slepc 243
          fi;\
1523 slepc 244
          cp -f conf/slepc_common* ${SLEPC_INSTALL_DIR}/conf;\
1567 slepc 245
          cp -f conf/slepc_common_variables_install ${SLEPC_INSTALL_DIR}/conf/slepc_common_variables;\
1527 slepc 246
          cp -f ${PETSC_ARCH}/conf/slepcvariables ${SLEPC_INSTALL_DIR}/conf;\
1717 jroman 247
          cp -f ${PETSC_ARCH}/conf/slepcrules ${SLEPC_INSTALL_DIR}/conf;\
1527 slepc 248
          if [ ! -d ${SLEPC_INSTALL_DIR}/lib ]; then \
249
	    ${MKDIR} ${SLEPC_INSTALL_DIR}/lib ; \
1366 slepc 250
          fi;\
1523 slepc 251
          if [ -d ${PETSC_ARCH}/lib ]; then \
1717 jroman 252
            cp -f ${PETSC_ARCH}/lib/libslepc*.* ${SLEPC_INSTALL_DIR}/lib;\
1527 slepc 253
            ${RANLIB} ${SLEPC_INSTALL_DIR}/lib/*.a ;\
1567 slepc 254
            ${OMAKE} PETSC_ARCH="" SLEPC_DIR=${SLEPC_INSTALL_DIR} shared; \
1717 jroman 255
            ${OMAKE} PETSC_ARCH="" SLEPC_DIR=${SLEPC_INSTALL_DIR} slepc4py; \
1366 slepc 256
          fi;\
1717 jroman 257
          echo "====================================";\
1527 slepc 258
	  echo "If using sh/bash, do the following:";\
259
          echo "  SLEPC_DIR="${SLEPC_INSTALL_DIR}"; export SLEPC_DIR";\
260
          echo "  unset PETSC_ARCH";\
261
          echo "If using csh/tcsh, do the following:";\
262
          echo "  setenv SLEPC_DIR "${SLEPC_INSTALL_DIR};\
263
          echo "  unsetenv PETSC_ARCH";\
1567 slepc 264
          echo "Run the following to verify the install (remain in current directory for the tests):";\
1527 slepc 265
          echo "  make test";\
1717 jroman 266
          echo "====================================";\
1366 slepc 267
        fi;
42 dsic.upv.es!antodo 268
 
6 dsic.upv.es!jroman 269
# ------------------------------------------------------------------
270
#
271
# All remaining actions are intended for SLEPc developers only.
272
# SLEPc users should not generally need to use these commands.
273
#
274
 
275
# Builds all the documentation
804 dsic.upv.es!antodo 276
alldoc: alldoc1 alldoc2
6 dsic.upv.es!jroman 277
 
804 dsic.upv.es!antodo 278
# Build everything that goes into 'doc' dir except html sources
1161 slepc 279
alldoc1: chk_loc deletemanualpages
42 dsic.upv.es!antodo 280
	-${OMAKE} ACTION=manualpages_buildcite tree_basic LOC=${LOC}
804 dsic.upv.es!antodo 281
	-@sed -e s%man+../%man+manualpages/% ${LOC}/docs/manualpages/manualpages.cit > ${LOC}/docs/manualpages/htmlmap
282
	-@cat ${PETSC_DIR}/src/docs/mpi.www.index >> ${LOC}/docs/manualpages/htmlmap
1161 slepc 283
	-${OMAKE} ACTION=slepc_manualpages tree_basic LOC=${LOC}
1455 slepc 284
	-${PETSC_DIR}/bin/maint/wwwindex.py ${SLEPC_DIR} ${LOC}
804 dsic.upv.es!antodo 285
	-${OMAKE} ACTION=manexamples tree_basic LOC=${LOC}
286
 
287
# Builds .html versions of the source
288
# html overwrites some stuff created by update-docs - hence this is done later.
289
alldoc2: chk_loc
290
	-${OMAKE} ACTION=slepc_html PETSC_DIR=${PETSC_DIR} alltree LOC=${LOC}
47 dsic.upv.es!antodo 291
	cp ${LOC}/docs/manual.htm ${LOC}/docs/index.html
6 dsic.upv.es!jroman 292
 
804 dsic.upv.es!antodo 293
# Deletes man pages (HTML version)
294
deletemanualpages: chk_loc
295
	-@if [ -d ${LOC} -a -d ${LOC}/docs/manualpages ]; then \
296
          find ${LOC}/docs/manualpages -type f -name "*.html" -exec ${RM} {} \; ;\
297
          ${RM} ${LOC}/docs/manualpages/manualpages.cit ;\
298
        fi
299
 
6 dsic.upv.es!jroman 300
# Builds Fortran stub files
794 dsic.upv.es!antodo 301
allfortranstubs:
986 slepc 302
	-@${SLEPC_DIR}/config/generatefortranstubs.py ${BFORT}
6 dsic.upv.es!jroman 303
 
304
# -------------------------------------------------------------------------------
305
#
1523 slepc 306
# Some macros to check if the Fortran interface is up-to-date.
6 dsic.upv.es!jroman 307
#
794 dsic.upv.es!antodo 308
countfortranfunctions:
1022 slepc 309
	-@for D in `find ${SLEPC_DIR}/src -name ftn-auto` \
310
	`find ${SLEPC_DIR}/src -name ftn-custom`; do cd $$D; \
311
	egrep '^void' *.c | \
312
	cut -d'(' -f1 | tr -s  ' ' | cut -d' ' -f3 | uniq | egrep -v "(^$$|Petsc)" | \
1025 slepc 313
	sed "s/_$$//"; done | sort > /tmp/countfortranfunctions
6 dsic.upv.es!jroman 314
 
794 dsic.upv.es!antodo 315
countcfunctions:
1022 slepc 316
	-@ grep "EXTERN " ${SLEPC_DIR}/include/*.h | grep "(" | tr -s ' ' | \
6 dsic.upv.es!jroman 317
	cut -d'(' -f1 | cut -d' ' -f3 | grep -v "\*" | tr -s '\012' |  \
318
	tr 'A-Z' 'a-z' |  sort > /tmp/countcfunctions
319
 
794 dsic.upv.es!antodo 320
difffortranfunctions: countfortranfunctions countcfunctions
1523 slepc 321
	-@echo -------------- Functions missing in the Fortran interface ---------------------
794 dsic.upv.es!antodo 322
	-@${DIFF} /tmp/countcfunctions /tmp/countfortranfunctions | grep "^<" | cut -d' ' -f2
6 dsic.upv.es!jroman 323
	-@echo ----------------- Functions missing in the C interface ------------------------
794 dsic.upv.es!antodo 324
	-@${DIFF} /tmp/countcfunctions /tmp/countfortranfunctions | grep "^>" | cut -d' ' -f2
6 dsic.upv.es!jroman 325
	-@${RM}  /tmp/countcfunctions /tmp/countfortranfunctions
326
 
794 dsic.upv.es!antodo 327
checkbadfortranstubs:
6 dsic.upv.es!jroman 328
	-@echo "========================================="
329
	-@echo "Functions with MPI_Comm as an Argument"
330
	-@echo "========================================="
1022 slepc 331
	-@for D in `find ${SLEPC_DIR}/src -name ftn-auto`; do cd $$D; \
332
	grep '^void' *.c | grep 'MPI_Comm' | \
1025 slepc 333
	tr -s ' ' | tr -s ':' ' ' |cut -d'(' -f1 | cut -d' ' -f1,3; done
6 dsic.upv.es!jroman 334
	-@echo "========================================="
335
	-@echo "Functions with a String as an Argument"
336
	-@echo "========================================="
1022 slepc 337
	-@for D in `find ${SLEPC_DIR}/src -name ftn-auto`; do cd $$D; \
338
	grep '^void' *.c | grep 'char \*' | \
1025 slepc 339
	tr -s ' ' | tr -s ':' ' ' |cut -d'(' -f1 | cut -d' ' -f1,3; done
6 dsic.upv.es!jroman 340
	-@echo "========================================="
794 dsic.upv.es!antodo 341
	-@echo "Functions with Pointers to PETSc Objects as Argument"
6 dsic.upv.es!jroman 342
	-@echo "========================================="
1022 slepc 343
	-@_p_OBJ=`grep _p_ ${PETSC_DIR}/include/*.h | tr -s ' ' | \
6 dsic.upv.es!jroman 344
	cut -d' ' -f 3 | tr -s '\012' | grep -v '{' | cut -d'*' -f1 | \
345
	sed "s/_p_//g" | tr -s '\012 ' ' *|' ` ; \
1022 slepc 346
	_p_OBJS=`grep _p_ ${SLEPC_DIR}/include/*.h | tr -s ' ' | \
347
	cut -d' ' -f 3 | tr -s '\012' | grep -v '{' | cut -d'*' -f1 | \
348
	sed "s/_p_//g" | tr -s '\012 ' ' *|' ` ; \
349
	for D in `find ${SLEPC_DIR}/src -name ftn-auto`; do cd $$D; \
350
	for OBJ in $$_p_OBJ $$_p_OBJS; do \
6 dsic.upv.es!jroman 351
	grep "$$OBJ \*" *.c | tr -s ' ' | tr -s ':' ' ' | \
1022 slepc 352
	cut -d'(' -f1 | cut -d' ' -f1,4; \
1025 slepc 353
	done; done
6 dsic.upv.es!jroman 354
 
1130 slepc 355
# Generate tags with Exuberant Ctags 5.5.4
356
ctags:
357
	-@ctags -R --exclude="examples" --languages=-HTML,Make --fortran-kinds=-l include src
358
	-@egrep -v __FUNCT__\|PetscToPointer\|PetscFromPointer\|PetscRmPointer tags > tags-tmp
359
	-@mv tags-tmp tags
360