Debian Codegraph @

packages/seacas/applications/nem_slice/elb_inp.h

raw
1 /*
2 * Copyright(C) 1999-2020, 2022 National Technology & Engineering Solutions
3 * of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with
4 * NTESS, the U.S. Government retains certain rights in this software.
5 *
6 * See packages/seacas/LICENSE for details
7 */
8 #pragma once
9
10 #include <string> // for string
11 struct Machine_Description;
12 struct Problem_Description;
13 struct Solver_Description;
14 template <typename INT> struct LB_Description;
15 struct Weight_Description;
16
17 /* Prototype for command-line parsing function */
18 template <typename INT>
19 int cmd_line_arg_parse(int argc, /* The command line argument count */
20 char *argv[], /* The command line arguments array */
21 std::string &exoII_inp_file, /* The ExodusII input FEM file name */
22 std::string &ascii_inp_file, /* The ASCII input file name */
23 std::string &nemI_out_file, /* The output NemesisI file name */
24 Machine_Description *machine, /* Pointer to structure in which to place
25 * machine information */
26 LB_Description<INT> *lb, /* Pointer to structure in which to place load
27 * balance parameters */
28 Problem_Description *prob, /* Pointer to structure in which to place general
29 * information about the run */
30 Solver_Description *solver, /* Pointer to structure in which to place
31 * parameters for the eigensolver */
32 Weight_Description *weight /* Pointer to structure in which to place
33 * parameters for the graph weighting scheme */
34 );
35
36 /* Prototype for function which reads in the ASCII input file */
37 template <typename INT>
38 int read_cmd_file(std::string &ascii_inp_file, /* The ASCII input file name */
39 std::string &exoII_inp_file, /* The ExodusII input FEM file name */
40 std::string &nemI_out_file, /* The output NemesisI file name */
41 Machine_Description *machine, /* Pointer to structure in which to place machine
42 * information */
43 LB_Description<INT> *lb, /* Pointer to structure in which to place load
44 * balance parameters */
45 Problem_Description *problem, /* Pointer to structure in which to place general
46 * information about the run */
47 Solver_Description *solver, /* Pointer to structure in which to place parameters
48 * for the eigensolver */
49 Weight_Description *weight /* Pointer to structure in which to place
50 * parameters for the eigensolver */
51 );
52
53 /* Prototype for function which checks the user specified input */
54 template <typename INT>
55 int check_inp_specs(std::string &exoII_inp_file, /* The ExodusII input FEM file name */
56 std::string &nemI_out_file, /* The output NemesisI file name */
57 Machine_Description *machine, /* Pointer to structure in which to place machine
58 * information */
59 LB_Description<INT> *lb, /* Pointer to structure in which to place load
60 * balance parameters */
61 Problem_Description *prob, /* Pointer to structure in which to place general
62 * information about the run */
63 Solver_Description *solver, /* Pointer to structure in which to place parameters
64 * for the eigensolver */
65 Weight_Description *weight /* Pointer to structure in which to place
66 * parameters for the weighting scheme */
67 );
68
69 /* Various defines used by the input routines */
70 #define NS_NONE -1