YAC 3.7.0
Yet Another Coupler
Loading...
Searching...
No Matches
interp_method_file.h File Reference
#include "interp_method.h"
Include dependency graph for interp_method_file.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define YAC_WEIGHT_FILE_VERSION_STRING   "yac weight file 1.0"
 
#define YAC_INTERP_FILE_WEIGHT_FILE_NAME_DEFAULT   (NULL)
 
#define YAC_INTERP_FILE_ON_MISSING_FILE_DEFAULT   (YAC_INTERP_FILE_MISSING_ERROR)
 
#define YAC_INTERP_FILE_ON_SUCCESS_DEFAULT   (YAC_INTERP_FILE_SUCCESS_CONT)
 

Enumerations

enum  yac_interp_file_on_missing_file { YAC_INTERP_FILE_MISSING_ERROR = 0 , YAC_INTERP_FILE_MISSING_CONT = 1 }
 
enum  yac_interp_file_on_success { YAC_INTERP_FILE_SUCCESS_STOP = 0 , YAC_INTERP_FILE_SUCCESS_CONT = 1 }
 

Functions

struct interp_methodyac_interp_method_file_new (char const *weight_file_name, enum yac_interp_file_on_missing_file on_missing_file, enum yac_interp_file_on_success on_success)
 

Macro Definition Documentation

◆ YAC_INTERP_FILE_ON_MISSING_FILE_DEFAULT

◆ YAC_INTERP_FILE_ON_SUCCESS_DEFAULT

◆ YAC_INTERP_FILE_WEIGHT_FILE_NAME_DEFAULT

#define YAC_INTERP_FILE_WEIGHT_FILE_NAME_DEFAULT   (NULL)

Definition at line 30 of file interp_method_file.h.

◆ YAC_WEIGHT_FILE_VERSION_STRING

#define YAC_WEIGHT_FILE_VERSION_STRING   "yac weight file 1.0"

Definition at line 28 of file interp_method_file.h.

Enumeration Type Documentation

◆ yac_interp_file_on_missing_file

Enumerator
YAC_INTERP_FILE_MISSING_ERROR 

abort on missing file

YAC_INTERP_FILE_MISSING_CONT 

continue on missing file

Definition at line 16 of file interp_method_file.h.

◆ yac_interp_file_on_success

Enumerator
YAC_INTERP_FILE_SUCCESS_STOP 

prevents following interpolation method from computating further weights

YAC_INTERP_FILE_SUCCESS_CONT 

continue weight computation with following interpolation methods

Definition at line 21 of file interp_method_file.h.

Function Documentation

◆ yac_interp_method_file_new()

struct interp_method * yac_interp_method_file_new ( char const * weight_file_name,
enum yac_interp_file_on_missing_file on_missing_file,
enum yac_interp_file_on_success on_success )

Construtor for an interpolation method that reads in a weight file

Parameters
[in]weight_file_namename of the weight file
[in]on_missing_filespecifies how YAC should behave if no file was found
[in]on_successspecifies how YAC should behave in case a weight file was successfully read

Definition at line 1583 of file interp_method_file.c.

Here is the caller graph for this function: