예제 #1
0
파일: main_fg.c 프로젝트: slosar/CRIME
static void run_foregrounds(ParamsForGet *pars)
{
  int ii;
  flouble **maps_q,**maps_u;
  flouble **maps_i=get_sck_maps(pars);

  if((pars->do_galaxy)&&(pars->do_polarization)) {
    do_polarization(pars,&maps_q,&maps_u);
  }
  else {
    maps_q=NULL;
    maps_u=NULL;
  }

  write_maps(pars->prefix_out,pars->nside,pars->n_nu-pars->haslam_nu_added,
	     maps_i,maps_q,maps_u);
  
  for(ii=0;ii<pars->n_nu;ii++)
    free(maps_i[ii]);
  free(maps_i);

  if((pars->do_galaxy)&&(pars->do_polarization)) {
    for(ii=0;ii<pars->n_nu;ii++) {
      free(maps_q[ii]);
      free(maps_u[ii]);
    }
    free(maps_q);
    free(maps_u);
  }
}
예제 #2
0
파일: crasher.c 프로젝트: bminor/libunwind
int
main (int argc, char **argv)
{
  if (argc > 1)
      write_maps(argv[1]);
  b(0);
  return 0;
}
예제 #3
0
int results_out (Descr *tgt_descr, Protein *tgt_structure, Representation * tgt_rep,
		 Descr *qry_descr, Protein *qry_structure, Representation * qry_rep,
		 List_of_maps *list, FILE * digest) {

    
    if (options.verbose) {
	write_maps (stdout, tgt_descr, qry_descr, list);
    }

    if (options.postprocess) {
	write_tfmd_pdb  (tgt_structure, list, tgt_descr, qry_descr);
	write_alignment (tgt_structure, qry_structure, list, tgt_descr, qry_descr);
    }
    
    write_digest (qry_descr, tgt_descr, qry_rep, tgt_rep, list, digest);               

    return 0;
}