<commit_before># Default number of processes (serial run):
NPROCS=1
# directory locations:
BIN=../../bin/
SCRIPTS=../../scripts/
preprocess: 
	@echo **********Generating the mesh using gmsh in 3d:
	gmsh -3 -clmin 0.25 -optimize -o step3d.msh src/step3d.geo
	@echo **********Converting the gmsh mesh to triangle format:
	$(SCRIPTS)gmsh2triangle step3d.msh
ifeq ($(NPROCS),1)
	@echo **********Serial run: not decomposing mesh
else
# exit if no fltools and print warning
	@if [ ! -e $(BIN)fldecomp ] ; then echo "You must build Fluidity parallel tools, using the command 'make fltools' in the Fluidity directory, prior to running this test in parallel."; false; fi
	@echo **********Decomposing the mesh into $(NPROCS) parts for parallel run:
	$(BIN)fldecomp -n $(NPROCS) -f step3d
endif

run:
ifeq ($(NPROCS),1)
	@echo **********Calling fluidity in serial with verbose log output enabled:
	$(BIN)fluidity -v2 -l backward_facing_step_3d.flml
else
	@echo **********Calling fluidity in parallel with verbose log output enabled:
	mpiexec -n $(NPROCS) $(BIN)fluidity -v2 -l backward_facing_step_3d.flml
endif

postprocess:
	@echo **********Calling the velocity data extraction and plotting python script:
ifeq ($(NPROCS),1)
	./postprocessor_3d_serial.py
else
	./postprocessor_3d_parallel.py
endif<commit_msg>oops, forgot to edit the makefile<commit_after># Default number of processes (serial run):
NPROCS=1
# directory locations:
BIN=../../bin/
SCRIPTS=../../scripts/
preprocess: 
	@echo **********Generating the mesh using gmsh in 3d:
	gmsh -3 -clmin 0.25 -optimize -o step3d.msh src/step3d.geo
	@echo **********Converting the gmsh mesh to triangle format:
	$(SCRIPTS)gmsh2triangle step3d.msh
ifeq ($(NPROCS),1)
	@echo **********Serial run: not decomposing mesh
else
# exit if no fltools and print warning
	@if [ ! -e $(BIN)fldecomp ] ; then echo "You must build Fluidity parallel tools, using the command 'make fltools' in the Fluidity directory, prior to running this test in parallel."; false; fi
	@echo **********Decomposing the mesh into $(NPROCS) parts for parallel run:
	$(BIN)fldecomp -n $(NPROCS) -f step3d
endif

run:
ifeq ($(NPROCS),1)
	@echo **********Calling fluidity in serial with verbose log output enabled:
	$(BIN)fluidity -v2 -l backward_facing_step_3d.flml
else
	@echo **********Calling fluidity in parallel with verbose log output enabled:
	mpiexec -n $(NPROCS) $(BIN)fluidity -v2 -l backward_facing_step_3d.flml
endif

postprocess:
	@echo **********Calling the velocity data extraction and plotting python script:
	./postprocessor_3d.py
{'fraction_non_alphanumeric': 0.1497451979615837, 'fraction_numerical': 0.014896119168953352, 'mean_word_length': 4.948717948717949, 'pattern_counts': {'":': 0, '<': 3, '<?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': '3420927', 'n_tokens_mistral': 900, 'n_tokens_neox': 870, 'n_words': 305}