public void stopCalculatingGravity(boolean vectorField) {
		// Wait for all to finish
		if (vectorField) {
			synchronized (vectorFieldFutures_) {
				while (!vectorFieldFutures_.isEmpty()) {
					try {
							vectorFieldFutures_.poll().get(2,TimeUnit.SECONDS);
					} catch (InterruptedException e) {
						e.printStackTrace();
					} catch (ExecutionException e) {
						e.printStackTrace();
					}
					catch (Exception e) {
						
					}
				}
			}
		}
		else {
			synchronized (gravityFieldFutures_) {
				while (!gravityFieldFutures_.isEmpty()) {
					try {
						gravityFieldFutures_.poll().get();
						
					} catch (InterruptedException e) {
						e.printStackTrace();
					} catch (ExecutionException e) {
						e.printStackTrace();
					}
				}
			}
		}
	}