Astaroth  2.2
config_loader.c File Reference

Brief info. More...

#include "astaroth_utils.h"
#include <stdint.h>
#include <string.h>
#include "errchk.h"
+ Include dependency graph for config_loader.c:

Functions

AcResult acUpdateBuiltinParams (AcMeshInfo *config)
 
AcResult acLoadConfig (const char *config_path, AcMeshInfo *config)
 Loads data from astaroth.conf into a config struct. More...
 

Detailed Description

Brief info.

Detailed info.

Function Documentation

◆ acLoadConfig()

AcResult acLoadConfig ( const char *  config_path,
AcMeshInfo config 
)

Loads data from astaroth.conf into a config struct.

Returns
AC_SUCCESS on success, AC_FAILURE if there are potentially uninitialized values.

◆ acUpdateBuiltinParams()

AcResult acUpdateBuiltinParams ( AcMeshInfo config)

Updates the built-in parameters based on nx, ny and nz