-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunc.h
More file actions
77 lines (57 loc) · 2.18 KB
/
func.h
File metadata and controls
77 lines (57 loc) · 2.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#ifndef H____func
#define H____func
#include <time.h>
#include <stdio.h>
#include <stdlib.h>
#include <vector>
#define MAXNT 100
//#define MAX(a, b) ((a) < (b) ? (b) : (a) )
#define MIN(a, b) ((a) > (b) ? (b) : (a) )
#include "parallel.h"
#include "mesh_interface.h"
#ifdef __cplusplus
extern "C" {
#endif
void UserWeight(pMesh mesh);
void generate_keyphrase(char* target, char* prefix, blockKey* tpblock);
void generate_keyphraseNew(char* target, char* prefix, blockKey* tpblock);
pPList return_vertices(pRegion region);
int topology(pRegion);
void procArgs(int argc, char *argv[]);
#ifdef PARALLEL
void readBC(pGModel, pParMesh);
void writeNCorp(pParMesh pmesh, globalInfo *info, int **ifath, int **nsons, int ipart);
void initLocalInfo(std::vector<pParMesh> pmesh, globalInfo** info);
void setupGlobalTasks(std::vector<pParMesh> pmesh, globalInfo **info);
void printInfo(pParMesh pmesh, globalInfo *info, int ipart);
void genILWork(globalInfo *info, int *ilwork, int ipart);
#else
void readBC(pGModel model, pMesh mesh);
void writeNCorp(pMesh mesh, globalInfo *info, int **ifath, int **nsons);
void initLocalInfo(pMesh mesh, globalInfo* info);
void printInfo(pMesh mesh, globalInfo *info);
#endif
/* Calcs info->nlwork */
void nlworkCalc(globalInfo *info);
/* returns if ent is periodic, if it is then master is returned thru ment */
int isPeriodic(pEntity ent, pMatch *ment);
/* is master from above on current proc? */
int isOnThisProc(pMatch ment);
void getX(pMesh mesh, double **x);
void getConnectivity(pMesh mesh, pPList bdry, int ***ien, int ***ienb,
globalInfo *info);
void R_entities(pRegion region, pVertex *vrts, pEdge *edgs, pFace *fcs,
int nen);
void R_entitiesBdry(pRegion region, pFace face, pVertex *vrts, pEdge *edgs,
pFace *fcs, int nen);
void attachPeriodicBC(pMesh mesh, globalInfo *info, int *iper);
void initGlobalInfo(globalInfo *info);
void freeGlobalInfo(globalInfo *info);
void addSendSegment(globalInfo *info, pEntity ent, pEntity ment, int pid);
void addRecvSegment(globalInfo *info, pEntity ent, int pid);
pPList nsR_edges(pRegion region);
double dist(double xyz1[3],double xyz2[3]);
#ifdef __cplusplus
}
#endif
#endif