OpenRadioss
2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
mumps_save_restore_C.c
Go to the documentation of this file.
1
/*
2
*
3
* This file is part of MUMPS 5.5.1, released
4
* on Tue Jul 12 13:17:24 UTC 2022
5
*
6
*
7
* Copyright 1991-2022 CERFACS, CNRS, ENS Lyon, INP Toulouse, Inria,
8
* Mumps Technologies, University of Bordeaux.
9
*
10
* This version of MUMPS is provided to you free of charge. It is
11
* released under the CeCILL-C license
12
* (see doc/CeCILL-C_V1-en.txt, doc/CeCILL-C_V1-fr.txt, and
13
* https://cecill.info/licences/Licence_CeCILL-C_V1-en.html)
14
*
15
*/
16
#include <stdio.h>
17
#include <stdlib.h>
18
#include <string.h>
19
#include "
mumps_save_restore_C.h
"
20
#include "
mumps_common.h
"
21
/* Functions */
22
void
MUMPS_CALL
23
MUMPS_GET_SAVE_DIR_C
(
MUMPS_INT
*len_save_dir,
char
* save_dir,
mumps_ftnlen
l1)
24
{
25
char
*tmp_save_dir;
26
tmp_save_dir = getenv (
"MUMPS_SAVE_DIR"
);
27
if
(tmp_save_dir==NULL)
28
{
29
tmp_save_dir =
"NAME_NOT_INITIALIZED"
;
30
}
31
*len_save_dir = strlen(tmp_save_dir);
32
save_dir = strncpy(save_dir, tmp_save_dir, l1);
33
}
34
void
MUMPS_CALL
35
MUMPS_GET_SAVE_PREFIX_C
(
MUMPS_INT
*len_save_prefix,
char
* save_prefix,
mumps_ftnlen
l1)
36
{
37
char
*tmp_save_prefix;
38
tmp_save_prefix = getenv (
"MUMPS_SAVE_PREFIX"
);
39
if
(tmp_save_prefix==NULL)
40
{
41
tmp_save_prefix =
"NAME_NOT_INITIALIZED"
;
42
}
43
*len_save_prefix = strlen(tmp_save_prefix);
44
save_prefix = strncpy(save_prefix, tmp_save_prefix, l1);
45
}
46
void
MUMPS_CALL
47
MUMPS_SAVE_RESTORE_RETURN_C
()
48
{
49
/*
50
Save/restore feature will be available in the future
51
*/
52
}
mumps_ftnlen
#define mumps_ftnlen
Definition
mumps_c_types.h:57
MUMPS_INT
#define MUMPS_INT
Definition
mumps_c_types.h:32
mumps_common.h
MUMPS_CALL
#define MUMPS_CALL
Definition
mumps_compat.h:35
MUMPS_SAVE_RESTORE_RETURN_C
void MUMPS_CALL MUMPS_SAVE_RESTORE_RETURN_C()
Definition
mumps_save_restore_C.c:47
mumps_save_restore_C.h
MUMPS_GET_SAVE_DIR_C
#define MUMPS_GET_SAVE_DIR_C
Definition
mumps_save_restore_C.h:19
MUMPS_GET_SAVE_PREFIX_C
#define MUMPS_GET_SAVE_PREFIX_C
Definition
mumps_save_restore_C.h:23
engine
extlib
MUMPS_5.5.1
src
mumps_save_restore_C.c
Generated by
1.15.0