 
 		const thrust::host_vector<real_> & ANCF_Beam_Length,
 		const thrust::host_vector<bool> & ANCF_IsCantilever,
+
 		const thrust::host_vector<int2> & ANCF_ReferenceArrayNodesOnBeams,
 		const thrust::host_vector<real_> & flexParametricDist,
 

	outMarker.close();
	//****
	ofstream refArray;
	refArray.open("checkPointRefrenceArray.txt");
	refArray << " # \n";
	for (int i=0; i < referenceArray.size(); i++) {
		int3 ref3 = referenceArray[i];
		refArray << ref3.x << ", " << ref3.y << ", " << ref3.z << endl;
	}
	refArray.close();
	//****
	ofstream rigidData;

		flexData << n.x << ", " << n.y << ", " << n.z << ", " << s.x << ", " << s.y << ", " << s.z << ", " <<
				nV.x << ", " << nV.y << ", " << nV.z << ", " << sV.x << ", " << sV.y << ", " << sV.z << ", " << endl;
	}

	flexData << "@"<< endl;

	flexData << "length, isCantilever,\n"
	flexData << " # \n";
	for (int i=0; i < ANCF_Beam_Length.size(); i++) {
		flexData << ANCF_Beam_Length[i] << ", " << ANCF_IsCantilever[i] << ", " << endl;
	}
	flexData.close();
	//****
	ofstream flexData;
	flexData.open("checkPointFlexData.txt");
