public void fixOutOfBounds()
	{
		// prevent any invalid permeabilities
		if(perm > 100)
			perm = 100;
		if(perm < 0)
			perm = 0;
		
		// prevent any invalid temperatures
		if(temp > maxTemp)
			temp = maxTemp;
		if(temp < minTemp)
			temp = minTemp;
		
		// prevent any invalid pressures
		if(pres > maxPres)
			pres = maxPres;
		if(pres < minPres)
			pres = minPres;
	}