 			cudaMemcpy(
 				damping_device,
 				damping,
-				hoppingAmplitudeSet->getBasisSize()*sizeof(complex<double>),
+				hoppingAmplitudeSet->getBasisSize()*sizeof(
+					complex<double>
+				),
 				cudaMemcpyHostToDevice
 			) == cudaSuccess,
 			"ChebyshevExpander::calculateCoefficientsGPU()",

//		type == Property::GreensFunction::Type::Retarded,
		type == Type::Retarded,
		"ChebyshevExpander::generateGreensFunctionGPU()",
		"Only evaluation of retarded Green's function is implemented for GPU so far.",
		"Use CPU evaluation instead."
	);

/*	complex<double> *greensFunctionData = new complex<double>[lookupTableResolution];

	for(int e = 0; e < lookupTableResolution; e++)
		greensFunctionData[e] = 0.;*/

	int *coefficientMap_device;
	complex<double> *damping_device = NULL;

	int totalMemoryRequirement
		= hoppingAmplitudeSet->getBasisSize()*sizeof(complex<double>);
	totalMemoryRequirement += hoppingAmplitudeSet->getBasisSize()*sizeof(
		complex<double>
	);
	totalMemoryRequirement += numHoppingAmplitudes*sizeof(int);
	totalMemoryRequirement += hoppingAmplitudeSet->getBasisSize()*sizeof(
		int
	);
	totalMemoryRequirement += numHoppingAmplitudes*sizeof(int);
	totalMemoryRequirement += numHoppingAmplitudes*sizeof(
		complex<double>
	);
	totalMemoryRequirement += to.size()*numCoefficients*sizeof(
		complex<double>
	);
	totalMemoryRequirement += hoppingAmplitudeSet->getBasisSize()*sizeof(
		int
	);
	if(damping != NULL){
		totalMemoryRequirement += hoppingAmplitudeSet->getBasisSize(
		)*sizeof(complex<double>);
	}
	if(getGlobalVerbose() && getVerbose()){
		Streams::out << "\tCUDA memory requirement: ";
		if(totalMemoryRequirement < 1024){
			Streams::out << totalMemoryRequirement/1024 << "B\n";
		}
		else if(totalMemoryRequirement < 1024*1024){
			Streams::out << totalMemoryRequirement/1024 << "KB\n";
		}
		else{
			Streams::out << totalMemoryRequirement/1024/1024
				<< "MB\n";
		}
	}

	TBTKAssert(
		cudaMalloc(
			(void**)&jIn1_device,
			hoppingAmplitudeSet->getBasisSize()*sizeof(
				complex<double>
			)
		) == cudaSuccess,
		"ChebyshevExpander::calculateCoefficientsGPU()",
		"CUDA malloc error while allocating jIn1_device.",
