My Project
programmer's documentation
Functions | Variables
cs_resource.h File Reference
#include "cs_config.h"
#include "cs_base.h"
Include dependency graph for cs_resource.h:

Go to the source code of this file.

Functions

void CS_PROCF (armtps, ARMTPS)(const cs_int_t *ntcabs
 
double cs_resource_get_wt_limit (void)
 Get current wall-clock time limit. More...
 
void cs_resource_set_wt_limit (double wt)
 Set wall-clock time limit. More...
 
void cs_resource_get_max_timestep (int ts_cur, int *ts_max)
 Limit number of remaining time steps if the remaining allocated time is too small to attain the requested number of steps. More...
 

Variables

void cs_int_tntmabs
 

Function Documentation

◆ CS_PROCF()

void CS_PROCF ( armtps  ,
ARMTPS   
) const

◆ cs_resource_get_max_timestep()

void cs_resource_get_max_timestep ( int  ts_cur,
int *  ts_max 
)

Limit number of remaining time steps if the remaining allocated time is too small to attain the requested number of steps.

Parameters
[in]ts_curcurrent time step number
[in,out]ts_maxmaximum time step number

◆ cs_resource_get_wt_limit()

double cs_resource_get_wt_limit ( void  )

Get current wall-clock time limit.

Returns
current wall-time limit (in seconds), or -1

◆ cs_resource_set_wt_limit()

void cs_resource_set_wt_limit ( double  wt)

Set wall-clock time limit.

Parameters
[in]wtwall-time limit (in seconds), or -1

Variable Documentation

◆ ntmabs

void cs_int_t* ntmabs