Skip to content
This repository has been archived by the owner on Dec 21, 2021. It is now read-only.

Commit

Permalink
Disabled warnings about itsy bitsy photon search radius
Browse files Browse the repository at this point in the history
  • Loading branch information
rschregle committed Sep 9, 2015
1 parent 86a1aad commit fc66f7b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/rt/pmapdata.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef lint
static const char RCSid[] = "$Id: pmapdata.c,v 2.12 2015/09/01 16:27:52 greg Exp $";
static const char RCSid[] = "$Id: pmapdata.c,v 2.13 2015/09/09 16:08:46 rschregle Exp $";
#endif
/*
==================================================================
Expand Down Expand Up @@ -364,11 +364,13 @@ void findPhotons (PhotonMap* pmap, const RAY* ray)
nearestNeighbours(pmap, pos, norm, 1);
}

#ifdef PMAP_ITSYBITSY
if (pmap -> maxDist < FTINY) {
sprintf(errmsg, "itsy bitsy teeny weeny photon search radius %e",
sqrt(pmap -> maxDist));
error(WARNING, errmsg);
}
#endif

if (pmap -> squeueEnd < pmap -> squeueSize * pmap -> gatherTolerance) {
/* Short lookup; too few photons found */
Expand Down

0 comments on commit fc66f7b

Please sign in to comment.