My Project
programmer's documentation
Functions
cs_field_default.c File Reference
#include "cs_defs.h"
#include <assert.h>
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "bft_mem.h"
#include "bft_error.h"
#include "bft_printf.h"
#include "cs_log.h"
#include "cs_mesh_location.h"
#include "cs_post.h"
#include "cs_field.h"
#include "cs_field_default.h"
Include dependency graph for cs_field_default.c:

Functions

int cs_variable_cdo_field_create (const char *name, const char *label, int location_id, int dim, int has_previous)
 Add a field shared between CDO and legacy schemes. This field is related to a general solved variable, with default options. More...
 
int cs_variable_field_create (const char *name, const char *label, int location_id, int dim)
 Add field defining a general solved variable, with default options. More...
 

Detailed Description

Field utility functions.

Function Documentation

◆ cs_variable_cdo_field_create()

int cs_variable_cdo_field_create ( const char *  name,
const char *  label,
int  location_id,
int  dim,
int  has_previous 
)

Add a field shared between CDO and legacy schemes. This field is related to a general solved variable, with default options.

Parameters
[in]namefield name
[in]labelfield default label, or empty
[in]location_idid of associated location
[in]dimfield dimension
[in]has_previousno if lower than 1
Returns
newly defined field id

◆ cs_variable_field_create()

int cs_variable_field_create ( const char *  name,
const char *  label,
int  location_id,
int  dim 
)

Add field defining a general solved variable, with default options.

Parameters
[in]namefield name
[in]labelfield default label, or empty
[in]location_idid of associated location
[in]dimfield dimension
Returns
newly defined field id