get_target_fluorescent_database - Gets target fluorescent_database for "building block" routines
Example compile flags (system dependent):
-DLINUX_X86_64 -DLINUX_X86_64_OPTERON -DGNU_COMPILER
-lKJB -lfftw3 -lgsl -lgslcblas -ljpeg -lSVM -lstdc++ -lpthread -lSLATEC -lg2c -lacml -lacml_mv -lblas -lg2c -lncursesw
This routine implements the creation/over-writing semantics used in the KJB
library. If *target_fl_db_ptr_ptr is NULL, then this routine creates the
fluorescent_database. If it is not null, and it is the right size, then this
routine does nothing. If it is the wrong size, then it is resized.
If an actual resize is needed, then a new fluorescent_database of the
required size is first created. If the creation is successful, then the old
fluorescent_database is free'd. The reason is that if the new allocation
fails, a calling application should have use of the old fluorescent_database.
The alternate is to free the old fluorescent_database first. This is more
memory efficient. A more sophisticated alternative is to free the old
fluorescent_database if it can be deterimined that the subsequent allocation
will succeed. Although such approaches have merit, it is expected that
resizing will occur infrequently enought that it is not worth implementing
them. Thus the simplest method with good semantics under most conditions has
On success, NO_ERROR is returned. On failure, ERROR is returned, with an
error message being set.
This software is not adequatedly tested. It is recomended that
results are checked independantly where appropriate.