time_map_type * enkf_fs_alloc_readonly_time_map( const char * mount_point ) { path_fmt_type * path_fmt = path_fmt_alloc_directory_fmt( DEFAULT_CASE_PATH ); char * filename = path_fmt_alloc_file( path_fmt , false , mount_point , TIME_MAP_FILE); time_map_type * time_map = time_map_fread_alloc_readonly( filename ); path_fmt_free( path_fmt ); free( filename ); return time_map; }
char * enkf_config_node_alloc_initfile( const enkf_config_node_type * node , const char * path , int iens) { if (node->init_file_fmt == NULL) return NULL; else { char * file = path_fmt_alloc_file( node->init_file_fmt , false , iens ); if (util_is_abs_path( file )) return file; else { char * full_path = util_alloc_filename( path , file , NULL ); free( file ); return full_path; } } }
char * enkf_config_node_alloc_initfile( const enkf_config_node_type * node , int iens) { if (node->init_file_fmt == NULL) return NULL; else return path_fmt_alloc_file( node->init_file_fmt , false , iens ); }
char * enkf_fs_alloc_case_tstep_member_filename( const enkf_fs_type * fs , int tstep , int iens , const char * input_name) { char * filename = path_fmt_alloc_file( fs->case_tstep_member_fmt , false , fs->mount_point , tstep , iens , input_name); return filename; }