Skip to content

Commit 55c5836

Browse files
committed
Attempting to implement Stephan's suggestions.
1 parent 53538dc commit 55c5836

File tree

5 files changed

+32
-17
lines changed

5 files changed

+32
-17
lines changed

assemble/Construct_Momentum_Element_DG.F90

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,4 @@
11
#include "fdebug.h"
2-
#undef ASSERT
3-
#ifdef NDEBUG
4-
#define ASSERT(X)
5-
#else
6-
#ifdef FORTRAN_DISALLOWS_LONG_LINES
7-
#define ASSERT(X) IF(.NOT.(X)) FLAbort("Failed assertion ")
8-
#else
9-
#define ASSERT(X) IF(.NOT.(X)) FLAbort("Failed assertion X")
10-
#endif
11-
#endif
122

133
module momentum_element_dg
144

assemble/Construct_Momentum_Element_DG_template.F90

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -212,11 +212,6 @@ subroutine WRAP_NAME(construct_momentum_element_dg)(ele, big_m, rhs, &
212212

213213
dg=continuity(U)<0
214214
p0=(element_degree(u,ele)==0)
215-
216-
! print*, "start"
217-
! print*, NDIM(U), NLOC_X ,NLOC(U,ele),&
218-
! NGI(U,ele), FNGI(U_nl,face), EFLOC(U,ele), FLOC(u,face), P_FLOC
219-
220215

221216
! In parallel, we construct terms on elements we own and those in
222217
! the L1 element halo.

assemble/Makefile.in

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ FCFLAGS = -I../include @MOD_FLAG@../include @CPPFLAGS@ @FCFLAGS@ -I/usr/local/in
3535
MPIF90 = @MPIF90@
3636

3737
CPP = @CPP@
38+
CPP_FORTRAN = @CPP_FORTRAN@
3839

3940
CC = @CC@
4041
CFLAGS = @CPPFLAGS@ @CFLAGS@ -I../include -I/usr/local/include -g
@@ -102,10 +103,14 @@ default: $(LIB)
102103
%.o: %.mod
103104

104105
clean:
105-
rm -f *.o *.d *.mod
106+
rm -f *.o *.d *.mod Construct_Momentum_Element_DG_processed.F90
106107

107108
Construct_Momentum_Element_DG_processed.F90:Construct_Momentum_Element_DG.F90 Construct_Momentum_Element_DG_template.F90
108-
$(CPP) -x c $(CFLAGS) $(GENFLAGS) Construct_Momentum_Element_DG.F90 -o Construct_Momentum_Element_DG_processed.F90
109+
ifeq ("@CPP_FORTRAN@","fpp")
110+
$(CPP_FORTRAN) -P -C $(CFLAGS) $(GENFLAGS) Construct_Momentum_Element_DG.F90 Construct_Momentum_Element_DG_processed.F90
111+
else
112+
$(CPP_FORTRAN) -P -C -std=c99 -x c $(CFLAGS) $(GENFLAGS) Construct_Momentum_Element_DG.F90 -o Construct_Momentum_Element_DG_processed.F90
113+
endif
109114

110115
Construct_Momentum_Element_DG_processed.o: Construct_Momentum_Element_DG_processed.F90
111116
@echo " FC Construct_Momentum_Element_DG"

configure

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -621,6 +621,7 @@ ac_includes_default="\
621621
ac_subst_vars='LTLIBOBJS
622622
LIBOBJS
623623
SED
624+
CPP_FORTRAN
624625
HYPERLIGHT
625626
MEMORY_STATS
626627
MBA3D
@@ -15951,6 +15952,18 @@ fi
1595115952
1595215953
#*******************
1595315954
15955+
#***** CPP_FORTAN_FLAGS *********
15956+
# Sets flags passed when calling the C preprocessor on Fortran
15957+
15958+
if test "x$USING_GFORTRAN" = "xyes"; then
15959+
CPP_FORTRAN="$CPP"
15960+
else
15961+
# Assume we're using the intel Fortran preprocessor.
15962+
CPP_FORTRAN="fpp"
15963+
fi
15964+
#********************************
15965+
15966+
1595415967
1595515968
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
1595615969
$as_echo_n "checking for a sed that does not truncate output... " >&6; }

configure.in

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1724,6 +1724,18 @@ fi
17241724

17251725
#*******************
17261726

1727+
#***** CPP_FORTAN_FLAGS *********
1728+
# Sets flags passed when calling the C preprocessor on Fortran
1729+
1730+
if test "x$USING_GFORTRAN" = "xyes"; then
1731+
CPP_FORTRAN="$CPP"
1732+
else
1733+
# Assume we're using the intel Fortran preprocessor.
1734+
CPP_FORTRAN="fpp"
1735+
fi
1736+
#********************************
1737+
1738+
AC_SUBST(CPP_FORTRAN)
17271739

17281740
AC_PROG_SED
17291741
AC_PROG_GREP

0 commit comments

Comments
 (0)