<commit_before># Makefile for sphere example

TARGET = swirl
GEO = cart

include $(FORESTCLAW)/Make.defs.local

# -----------------------------------------------------------
FC = gfortran
FFLAGS = -O0 -g -Wno-unused-variable $(LOCAL_FFLAGS)  -ffpe-trap=invalid

system := $(filter Linux Darwin,$(shell uname))
arch := $(shell uname -m)

TrapFPE := TRAPFPE
ifeq ($(system),Darwin)
  FPE_TRAP = fp_exception_glibc_extension.o
  CPPFLAGS = -DOSX -D${TrapFPE}
else
  FPE_TRAP =
endif

# -----------------------------------------------------------
# Define local objects here
exampleobjs = \
	swirl_user.o \
	ghost_twopatch.o \
	tag4refinement.o \
	psi.o \
	rpn2ad1.o \
	rpt2ad1.o \
	qinit.o \
	b4step2.o \
	setaux.o \
	setprob.o \
	swirl_output.o

# Solver routines (several solvers can be added here)
include Makefile.waveprop.inc
solverobjs = $(waveprop_objs)
solverincludes = $(waveprop_includes)

# Mapping routines
geoobjs = $(FORESTCLAW)/src/mappings/cart/set_maptype_cart.o

OBJECTS = $(TARGET).o $(exampleobjs) $(solverobjs) $(geoobjs) $(FPE_TRAP)

# -----------------------------------------------------------
# The rest of this is more or less default.
# -----------------------------------------------------------

include $(P4EST_DIR)/etc/Makefile.p4est.mk

# make sure that the first make target is the executable
default: $(TARGET)

.cpp.o:
	$(P4EST_CXX) $(P4EST_CFLAGS) $(P4EST_CPPFLAGS) $(CPP_FLAGS)\
	-I$(FORESTCLAW)/src -I. ${solverincludes} -c $< -o $@

.c.o:
	$(CC) $(P4EST_CFLAGS) $(P4EST_CPPFLAGS) \
	-I$(FORESTCLAW)/src -I. ${solverincludes} -c $< -o $@

.f.o:
	$(FC) -Wall $(FFLAGS) -c $< ${solverincludes} -o $@

.PHONY: clean realclean default $(TARGET)

$(TARGET): $(OBJECTS) $(FORESTCLAW)/src/libforestclaw.a
	$(P4EST_CXX) $(P4EST_CFLAGS) $^ $(P4EST_LDFLAGS) $(FORT_LIB) \
	$(P4EST_LIBS) -o $@

clean:
	rm -f *.o $(TARGET) $(exampleobjs)

realclean:<commit_msg>fixed CPPFLAGS so TRAPFEP is defined<commit_after># Makefile for sphere example

TARGET = swirl
GEO = cart

include $(FORESTCLAW)/Make.defs.local

# -----------------------------------------------------------
FC = gfortran
FFLAGS = -O0 -g -Wno-unused-variable $(LOCAL_FFLAGS)  -ffpe-trap=invalid

system := $(filter Linux Darwin,$(shell uname))
arch := $(shell uname -m)

TrapFPE := TRAPFPE
ifeq ($(system),Darwin)
  FPE_TRAP = fp_exception_glibc_extension.o
  CPPFLAGS = -DOSX -D${TrapFPE}
else
  FPE_TRAP =
endif

# -----------------------------------------------------------
# Define local objects here
exampleobjs = \
	swirl_user.o \
	ghost_twopatch.o \
	tag4refinement.o \
	psi.o \
	rpn2ad1.o \
	rpt2ad1.o \
	qinit.o \
	b4step2.o \
	setaux.o \
	setprob.o \
	swirl_output.o

# Solver routines (several solvers can be added here)
include Makefile.waveprop.inc
solverobjs = $(waveprop_objs)
solverincludes = $(waveprop_includes)

# Mapping routines
geoobjs = $(FORESTCLAW)/src/mappings/cart/set_maptype_cart.o

OBJECTS = $(TARGET).o $(exampleobjs) $(solverobjs) $(geoobjs) $(FPE_TRAP)

# -----------------------------------------------------------
# The rest of this is more or less default.
# -----------------------------------------------------------

include $(P4EST_DIR)/etc/Makefile.p4est.mk

# make sure that the first make target is the executable
default: $(TARGET)

.cpp.o:
	$(P4EST_CXX) $(CPPFLAGS) $(P4EST_CFLAGS) $(P4EST_CPPFLAGS) \
	-I$(FORESTCLAW)/src -I. ${solverincludes} -c $< -o $@

.c.o:
	$(CC) $(P4EST_CFLAGS) $(P4EST_CPPFLAGS) \
	-I$(FORESTCLAW)/src -I. ${solverincludes} -c $< -o $@

.f.o:
	$(FC) -Wall $(FFLAGS) -c $< ${solverincludes} -o $@

.PHONY: clean realclean default $(TARGET)

$(TARGET): $(OBJECTS) $(FORESTCLAW)/src/libforestclaw.a
	$(P4EST_CXX) $(P4EST_CFLAGS) $^ $(P4EST_LDFLAGS) $(FORT_LIB) \
	$(P4EST_LIBS) -o $@

clean:
	rm -f *.o $(TARGET) $(exampleobjs)

realclean:
{'fraction_non_alphanumeric': 0.26627998945425785, 'fraction_numerical': 0.010018455048774057, 'mean_word_length': 2.3724444444444446, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5437313', 'n_tokens_mistral': 1471, 'n_tokens_neox': 1434, 'n_words': 304}