src/ffs/ffs_inst.c
static int ffs_inst_read_trial(ffs_inst_t * obj, u_config_t * config) {

  dbg_return_if(obj == NULL, -1);
  dbg_return_if(config == NULL, -1);

  dbg_err_if( u_config_get_subkey_value_i(config, FFS_CONFIG_TRIAL_NSTEPMAX,
	      FFS_DEFAULT_TRIAL_NSTEPMAX, &obj->nstepmax_trial));

  dbg_err_if( u_config_get_subkey_value_i(config, FFS_CONFIG_TRIAL_NSTEPLAMBDA,
	      FFS_DEFAULT_TRIAL_NSTEPLAMBDA, &obj->nsteplambda_trial));

  return 0;

 err:

  mpilog(obj->log, "Failed to parse trial parameters\n");

  return -1;
}
/*****************************************************************************
 *
 *  ffs_inst_read_trial
 *
 *  Extract the trial parameters from the instance config
 *
 *****************************************************************************/
ffs_inst_read_trial
Extract the trial parameters from the instance config
ffs_inst_read_trial Extract the trial parameters from the instance config
static int ffs_inst_read_trial(ffs_inst_t * obj, u_config_t * config) {
  dbg_return_if(obj == NULL, -1);
  dbg_return_if(config == NULL, -1);
  dbg_err_if( u_config_get_subkey_value_i(config, FFS_CONFIG_TRIAL_NSTEPMAX,
	      FFS_DEFAULT_TRIAL_NSTEPMAX, &obj->nstepmax_trial));
  dbg_err_if( u_config_get_subkey_value_i(config, FFS_CONFIG_TRIAL_NSTEPLAMBDA,
	      FFS_DEFAULT_TRIAL_NSTEPLAMBDA, &obj->nsteplambda_trial));
  return 0;
 err:
  mpilog(obj->log, "Failed to parse trial parameters\n");
  return -1;
}
static int ffs_inst_read_trial ( ffs_inst_t * obj , u_config_t * config ) { dbg_return_if ( obj == NULL , -1 ) ; dbg_return_if ( config == NULL , -1 ) ; dbg_err_if ( u_config_get_subkey_value_i ( config , FFS_CONFIG_TRIAL_NSTEPMAX , FFS_DEFAULT_TRIAL_NSTEPMAX , & obj -> nstepmax_trial ) ) ; dbg_err_if ( u_config_get_subkey_value_i ( config , FFS_CONFIG_TRIAL_NSTEPLAMBDA , FFS_DEFAULT_TRIAL_NSTEPLAMBDA , & obj -> nsteplambda_trial ) ) ; return 0 ; err : mpilog ( obj -> log , " \n " ) ; return -1 ; }
ffs_inst_read_trial
  Extract the trial parameters from the instance config
ffs_inst_read_trial Extract the trial parameters from the instance config