-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Various bug fixes + allow non-fortran builds
Found a couple bugs in the current dev branch of ExaConstit Also turned off the Fortran build requirements as its a pain to get working on most macs...
- Loading branch information
Showing
9 changed files
with
98 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
#include <stdlib.h> | ||
#include <string.h> | ||
#include <stdio.h> | ||
|
||
#include <iostream> | ||
#include <sstream> | ||
#include <string> | ||
#include <iomanip> | ||
|
||
#define real8 double | ||
|
||
#ifdef WIN32 | ||
#define UMAT_API __declspec(dllexport) | ||
#elif defined(__clang__) | ||
#define UMAT_API extern "C" | ||
#define UMAT umat | ||
#else | ||
#define UMAT_API extern "C" | ||
#define UMAT umat_ | ||
#endif | ||
|
||
UMAT_API | ||
void UMAT(real8 *stress, real8 *statev, real8 *ddsdde, | ||
real8 *sse, real8 *spd, real8 *scd, real8 *rpl, | ||
real8 *ddsdt, real8 *drplde, real8 *drpldt, | ||
real8 *stran, real8 *dstran, real8 *time, | ||
real8 *deltaTime, real8 *tempk, real8 *dtemp, real8 *predef, | ||
real8 *dpred, real8 *cmname, int *ndi, int *nshr, int *ntens, | ||
int *nstatv, real8 *props, int *nprops, real8 *coords, | ||
real8 *drot, real8 *pnewdt, real8 *celent, | ||
real8 *dfgrd0, real8 *dfgrd1, int *noel, int *npt, | ||
int *layer, int *kspt, int *kstep, int *kinc) | ||
{ | ||
sse[0] += 1.0; | ||
spd[0] += 1.0; | ||
scd[0] += 1.0; | ||
rpl[0] += 1.0; | ||
drpldt[0] += 1.0; | ||
for (int i = 0; i < ntens[0]; i++){ | ||
drplde[i] += 1.0; | ||
for (int j = 0; j < ntens[0]; j++) { | ||
ddsdde[j * ntens[0] + i] += 1; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
workflows/Stage3/pre_main_post_script/voxel_coarsen/src/pycoarsen/mod.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters