#!/bin/bash
# Run this script for cleanup/reset
#
#
#  ONLY AFTER INITIAL RUN
#	BASED ON EXPORTED PATHS!!!
#


#export $bench_dir < bench_dir
#echo $bench_dir					#debug
#echo $bench_dir_01  
#echo $bench_dir_02  
#echo $additions  
export bench_dir=$PWD
export bench_dir_01=$bench_dir/01.FMM-YUK-U			# setting folder 01 as env var
export bench_dir_02=$bench_dir/02.FMM-YUK-A			# setting folder 02 as env var
export additions=$bench_dir/additions	

# step one
clear
echo "make clean;rm from top dir;rm from bottom dirs"
	
# step two
cd $additions; make clean	
rm binary_charge; rm binary_x; rm binary_y; rm binary_z;
rm dump ; rm dump charge; rm dump_x ;rm dump_y;rm dump_z;
rm fortran.dump; 

# step three
cd $bench_dir_01/source/; make clean
rm binary_charge; rm binary_x; rm binary_y; rm binary_z;
rm fort.6 ; rm fort.11 ; rm fort.13;
rm direct_field ; rm direct_potential ; rm direct_test_output; 
rm final_field ; rm final_potential ; rm final_test_output;
rm fmm.log; rm m_field ; rm m_potential ; rm m_test_output 
rm points_in_space ; rm points_in_space1 ; rm points_in_space2 ; 
rm "test"

# step four
cd $bench_dir_02/source/; make clean

rm binary_charge; rm binary_x; rm binary_y; rm binary_z;
rm fort.6 ; rm fort.11 ; rm fort.13;
rm direct_field ; rm direct_potential ; rm direct_test_output; 
rm final_field ; rm final_potential ; rm final_test_output;
rm fmm.log ;rm points_in_space ; rm points_in_space1 ; rm points_in_space2 ; 
rm "test"

