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>
20#include "mumps_common.h"
21/* Functions */
22void MUMPS_CALL
23MUMPS_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}
34void MUMPS_CALL
35MUMPS_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}
46void MUMPS_CALL
48{
49 /*
50 Save/restore feature will be available in the future
51 */
52}
#define mumps_ftnlen
#define MUMPS_INT
#define MUMPS_CALL
void MUMPS_CALL MUMPS_SAVE_RESTORE_RETURN_C()
#define MUMPS_GET_SAVE_DIR_C
#define MUMPS_GET_SAVE_PREFIX_C