Skip to content

Commit 1cbe2fa

Browse files
committed
Fix -orispread
Fixed seed of the random number generator to make sure that it depends on -id.
1 parent 6fe2607 commit 1cbe2fa

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

VERSIONS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
New in 4.10.2-10 (06 Feb 2025):
1+
New in 4.10.2-11 (06 Feb 2025):
22
- module -T: added -ori transform ori for tesrs, added -statcell
33
oridisanisoaxes_crys, made minor bug fixes and improvements.
44
- module -M: fixed -dim 2 -interface cohesive, fixed -loadmesh on $Topology=0

doc/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
import sphinx_rtd_theme
1212

1313
project = u'Neper'
14-
version = u'4.10.2-10'
15-
release = u'4.10.2-10'
14+
version = u'4.10.2-11'
15+
release = u'4.10.2-11'
1616
author = u'Romain Quey'
1717
copyright = u'Romain Quey'
1818
language = 'en'

src/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ if(POLICY CMP0077)
77
cmake_policy(SET CMP0077 NEW)
88
endif()
99

10-
set(NEPER_VERSION \"4.10.2-10\")
10+
set(NEPER_VERSION \"4.10.2-11\")
1111
project(neper)
1212

1313
if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.8.1)

src/neper_t/neper_t.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ neper_t (int fargc, char **fargv, int argc, char **argv)
315315
net_tess_tesr (In.tesrsizestring, FTess, &Tesr);
316316

317317
if (neut_tesr_hascellorispread (Tesr))
318-
net_ori_post (&Tesr);
318+
net_ori_post (SSet[1], &Tesr);
319319
}
320320

321321
// ###################################################################

src/neper_t/net_ori/net_ori.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ extern "C"
2828
extern void net_ori_file (char *label, struct OL_SET *pOSet);
2929
extern void net_ori_memcpy (struct OL_SET OSet, struct SEEDSET *pSSet);
3030

31-
extern void net_ori_post (struct TESR *pTesr);
31+
extern void net_ori_post (struct SEEDSET SSet, struct TESR *pTesr);
3232

3333
#ifdef __cplusplus
3434
}

src/neper_t/net_ori/net_ori1.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ net_ori (struct IN_T In, int level, struct MTESS MTess, struct TESS *Tess,
173173
}
174174

175175
void
176-
net_ori_post (struct TESR *pTesr)
176+
net_ori_post (struct SEEDSET SSet, struct TESR *pTesr)
177177
{
178178
int i, j;
179179

@@ -189,7 +189,7 @@ net_ori_post (struct TESR *pTesr)
189189
neut_tesr_cell_voxs (*pTesr, i, &voxs, &voxqty);
190190

191191
q = ut_alloc_2d (voxqty, 4);
192-
neut_ori_orispread ((*pTesr).CellOri[i], (*pTesr).CellOriDistrib[i], voxqty, i, q);
192+
neut_ori_orispread ((*pTesr).CellOri[i], (*pTesr).CellOriDistrib[i], voxqty, SSet.Random + i, q);
193193

194194
for (j = 0; j < voxqty; j++)
195195
ol_q_memcpy (q[j], (*pTesr).VoxOri[voxs[j][0]][voxs[j][1]][voxs[j][2]]);

0 commit comments

Comments
 (0)