Simplifed square-lattice Ising model in C99