My Project
programmer's documentation
Functions
cs_user_solver.c File Reference

User solver setting and implementation. More...

#include "cs_defs.h"
#include <assert.h>
#include <math.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "bft_error.h"
#include "bft_mem.h"
#include "bft_printf.h"
#include "cs_base.h"
#include "cs_mesh.h"
#include "cs_mesh_quantities.h"
#include "cs_post.h"
#include "cs_restart.h"
#include "cs_time_plot.h"
#include "cs_prototypes.h"
Include dependency graph for cs_user_solver.c:

Functions

int cs_user_solver_set (void)
 Set user solver. More...
 
void cs_user_solver (const cs_mesh_t *mesh, const cs_mesh_quantities_t *mesh_quantities)
 Main call to user solver. More...
 

Detailed Description

User solver setting and implementation.

See Solving a heat equation with a user solver (cs_user_solver.c) for examples.

Function Documentation

◆ cs_user_solver()

void cs_user_solver ( const cs_mesh_t mesh,
const cs_mesh_quantities_t mesh_quantities 
)

Main call to user solver.

Parameters
[in]meshpointer to a cs_mesh_t structure
[in,out]mesh_quantitiespointer to a cs_mesh_quantities_t structure

◆ cs_user_solver_set()

int cs_user_solver_set ( void  )

Set user solver.

Returns
1 if user solver is called, 0 otherwise