computeClusters computeSynchrones # Cluster one full task (nb_curves / ntasks series) clusteringTask = function(indices,getSeries,getSeriesForSynchrones,synchrones_file, getCoefs,K1,K2,nb_series_per_chunk,ncores,to_file,ftype) { cl = parallel::makeCluster(ncores) repeat { nb_workers = max( 1, round( length(indices) / nb_series_per_chunk ) ) indices_workers = lapply(seq_len(nb_workers), function(i) { upper_bound = ifelse( i