YetAnotherCoupler 3.4.0
Loading...
Searching...
No Matches
config_yaml.h File Reference
#include "couple_config.h"
Include dependency graph for config_yaml.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void yac_yaml_read_coupling (struct yac_couple_config *couple_config, const char *yaml_filename, int parse_flags)
 
char * yac_yaml_emit_coupling (struct yac_couple_config *couple_config, int emit_flags, int include_definitions)
 
struct yac_interp_stack_configyac_yaml_parse_interp_stack_config_string (char const *interp_stack_config, int parse_flags)
 

Variables

int const YAC_YAML_PARSER_DEFAULT
 default parse flags (YAML format)
 
int const YAC_YAML_PARSER_JSON_AUTO
 
int const YAC_YAML_PARSER_JSON_FORCE
 assume JSON format
 

Function Documentation

◆ yac_yaml_emit_coupling()

char * yac_yaml_emit_coupling ( struct yac_couple_config * couple_config,
int emit_flags,
int include_definitions )

Emit coupling configuration to string

Parameters
[in]couple_configcoupling configuration
[in]emit_flagsflags to be used for emitting the coupling configuration
[in]include_definitionsinclude user definitions (components, grids, and fields) in the output file
Returns
string containing coupling configuration

Definition at line 2897 of file config_yaml.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ yac_yaml_parse_interp_stack_config_string()

struct yac_interp_stack_config * yac_yaml_parse_interp_stack_config_string ( char const * interp_stack_config,
int parse_flags )

Parse a "0"-terminated string that contains a interpolation stack configuration

Parameters
[in]interp_stack_configstring containing interpolation stack configuration
[in]parse_flagsflags to be used for parsing the string

Definition at line 1884 of file config_yaml.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ yac_yaml_read_coupling()

void yac_yaml_read_coupling ( struct yac_couple_config * couple_config,
const char * yaml_filename,
int parse_flags )

Reader for yaml while, which parses the given yaml file and adds the coupling from the file to the coupling configuration data

Parameters
[in,out]couple_configcoupling configuration data
[in]yaml_filenamename of yaml configuration file
[in]parse_flagsflags to be used for parsing the configuration file

Definition at line 1835 of file config_yaml.c.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ YAC_YAML_PARSER_DEFAULT

int const YAC_YAML_PARSER_DEFAULT
extern

default parse flags (YAML format)

Definition at line 65 of file config_yaml.c.

◆ YAC_YAML_PARSER_JSON_AUTO

int const YAC_YAML_PARSER_JSON_AUTO
extern

switch to JSON format, if indicated by file extension

Definition at line 66 of file config_yaml.c.

◆ YAC_YAML_PARSER_JSON_FORCE

int const YAC_YAML_PARSER_JSON_FORCE
extern

assume JSON format

Definition at line 67 of file config_yaml.c.