Verified Commit ec09c8a7 authored by Kelleher, Michael's avatar Kelleher, Michael
Browse files

Move \<\< operator def to satisfy clang

parent 1183d436
Loading
Loading
Loading
Loading
+24 −24
Original line number Diff line number Diff line
@@ -581,6 +581,30 @@ namespace Output
	}


	template<typename T>
	std::ostream& operator<<(std::ostream& out, Matrix::matrix<T>& M)
	{
		int m = M.get_num_rows();
		int n = M.get_num_cols();
		int off = GHOST_CELL_PADDING;
		for (int i = off; i < m - off; i++)
		{
			for (int j = off; j < n - off; j++)
			{
				out << (T)M(i, j);

				if (j < (n - off) - off)
				{
					out << " ";
				}
			}
			out << std::endl;
		}

		return out;
	}


	template<typename T>
	void output<T>::write_output_ascii_parallel(Matrix::matrix<T>& arr, std::string what_mat, int print_id, T simtime)
	{
@@ -1001,30 +1025,6 @@ namespace Output
	}


	template<typename T>
	std::ostream& operator<<(std::ostream& out, Matrix::matrix<T>& M)
	{
		int m = M.get_num_rows();
		int n = M.get_num_cols();
		int off = GHOST_CELL_PADDING;
		for (int i = off; i < m - off; i++)
		{
			for (int j = off; j < n - off; j++)
			{
				out << (T)M(i, j);

				if (j < (n - off) - off)
				{
					out << " ";
				}
			}
			out << std::endl;
		}

		return out;
	}


	template<typename T>
	void output<T>::write_times(SuperTimer::super_timer st, int print_id)
	{