public static void write4DArray(float[][][][] phiAS, String phiASFileName) throws IOException {
		// TODO Auto-generated method stub
		BufferedWriter writer = new BufferedWriter(new FileWriter(phiASFileName));
		for(int i = 0; i < phiAS.length; i++){
			for(int j = 0; j < phiAS[i].length; j++){
			 	for(int k = 0; k < phiAS[i][j].length; k++){
			 		for(int m = 0; m < phiAS[i][j][k].length; m++){
			 			writer.append(i + "\t" + j + "\t" + k + "\t" + m + "\t" + phiAS[i][j][k][m] + "\n");
			 		}
			 	}
			 	writer.flush();
			}
		}
		writer.flush();
		writer.close();
	}