private void calcField() throws InterruptedException
	{
		int processors = Runtime.getRuntime().availableProcessors()*2;
		FieldCalculatorThread[] threads=new FieldCalculatorThread[processors];
		for(int y=0; y < processors; y++) {
		  threads[y] = new FieldCalculatorThread(_field,y, processors,_charges,_scale);
		  threads[y].start();
		}
		for (int i=0;i<processors;i++)
		{
			threads[i].join();
		}
		max=0;
		min=0;
		_maxPotential=0;
		_minPotential=0;
		for (int i=0;i<processors;i++)
		{
			if (max<threads[i].getMax())
			{
				max=threads[i].getMax();
			}
			if (min>threads[i].getMin())
			{
				min=threads[i].getMin();
			}
			if (_maxPotential<threads[i].getMaxPotential())
			{
				_maxPotential=threads[i].getMaxPotential();
			}
			if (_minPotential>threads[i].getMinPotential())
			{
				_minPotential=threads[i].getMinPotential();
			}
		}
		System.out.println("Threads finished");
	}