 #include <boundaryCondition.h>
 
 using std::string;
+using std::ios;
 
 /// convert string to real number or integer
 template <typename T>


	out.str("");
	out << path << "/q";
	std::ofstream file(out.str().c_str());
	file << q.size() << std::endl;
	for(int i=0; i<q.size(); i++)
		file << q[i] << '\n';
	file.close();

	out.str("");
	out << path << "/lambda";
	file.open(out.str().c_str());
	file << lambda.size() << '\n';
	for(int i=0; i<lambda.size(); i++)
		file << lambda[i] << '\n';
	file.close();
	
	std::cout << "Data saved to folder " << path << std::endl;

{
	std::stringstream out;
	out << caseFolder << "/grid";
	std::ofstream file(out.str().c_str(), ios::binary);
	file.write((char*)(&D.nx), sizeof(int));
	file.write((char*)(&D.x[0]), (D.nx+1)*sizeof(real));
	file.write((char*)(&D.ny), sizeof(int));
	file.write((char*)(&D.y[0]), (D.ny+1)*sizeof(real));
	file.close();
}

template <>
