@@ -31,7 +31,7 @@ mgis_status mgis_bv_material_state_manager_initializer_bind_gradients(
31
31
" (memory pointer is null)" );
32
32
}
33
33
try {
34
- i->gradients = mgis ::span<mgis::real>(p, s);
34
+ i->gradients = std ::span<mgis::real>(p, s);
35
35
} catch (...) {
36
36
return mgis_handle_cxx_exception ();
37
37
}
@@ -54,7 +54,7 @@ mgis_bv_material_state_manager_initializer_bind_thermodynamic_forces(
54
54
" (memory pointer is null)" );
55
55
}
56
56
try {
57
- i->thermodynamic_forces = mgis ::span<mgis::real>(p, s);
57
+ i->thermodynamic_forces = std ::span<mgis::real>(p, s);
58
58
} catch (...) {
59
59
return mgis_handle_cxx_exception ();
60
60
}
@@ -78,7 +78,7 @@ mgis_bv_material_state_manager_initializer_bind_internal_state_variables(
78
78
" (memory pointer is null)" );
79
79
}
80
80
try {
81
- i->internal_state_variables = mgis ::span<mgis::real>(p, s);
81
+ i->internal_state_variables = std ::span<mgis::real>(p, s);
82
82
} catch (...) {
83
83
return mgis_handle_cxx_exception ();
84
84
}
@@ -101,7 +101,7 @@ mgis_status mgis_bv_material_state_manager_initializer_bind_stored_energies(
101
101
" (memory pointer is null)" );
102
102
}
103
103
try {
104
- i->stored_energies = mgis ::span<mgis::real>(p, s);
104
+ i->stored_energies = std ::span<mgis::real>(p, s);
105
105
} catch (...) {
106
106
return mgis_handle_cxx_exception ();
107
107
}
@@ -124,7 +124,7 @@ mgis_status mgis_bv_material_state_manager_initializer_bind_dissipated_energies(
124
124
" (memory pointer is null)" );
125
125
}
126
126
try {
127
- i->dissipated_energies = mgis ::span<mgis::real>(p, s);
127
+ i->dissipated_energies = std ::span<mgis::real>(p, s);
128
128
} catch (...) {
129
129
return mgis_handle_cxx_exception ();
130
130
}
@@ -232,7 +232,6 @@ mgis_status mgis_bv_material_state_manager_set_uniform_material_property(
232
232
const char * const n,
233
233
mgis_real* const v,
234
234
const mgis_bv_MaterialStateManagerStorageMode s) {
235
- using index_type = mgis::span<mgis::real>::index_type;
236
235
if (m == nullptr ) {
237
236
return mgis_report_failure (" null state manager" );
238
237
}
@@ -243,11 +242,11 @@ mgis_status mgis_bv_material_state_manager_set_uniform_material_property(
243
242
const auto & mp = getVariable (m->b .mps , n);
244
243
const auto mpsize = getVariableSize (mp, m->b .hypothesis );
245
244
if (s == MGIS_BV_LOCAL_STORAGE) {
246
- setMaterialProperty (*m, n, {v, static_cast <index_type >(mpsize)},
245
+ setMaterialProperty (*m, n, {v, static_cast <mgis_size_type >(mpsize)},
247
246
mgis::behaviour::MaterialStateManager::LOCAL_STORAGE);
248
247
} else {
249
248
setMaterialProperty (
250
- *m, n, {v, static_cast <index_type >(mpsize)},
249
+ *m, n, {v, static_cast <mgis_size_type >(mpsize)},
251
250
mgis::behaviour::MaterialStateManager::EXTERNAL_STORAGE);
252
251
}
253
252
} catch (...) {
@@ -261,7 +260,6 @@ mgis_status mgis_bv_material_state_manager_set_non_uniform_material_property(
261
260
const char * const n,
262
261
mgis_real* const v,
263
262
const mgis_bv_MaterialStateManagerStorageMode s) {
264
- using index_type = mgis::span<mgis::real>::index_type;
265
263
if (m == nullptr ) {
266
264
return mgis_report_failure (" null state manager" );
267
265
}
@@ -272,11 +270,11 @@ mgis_status mgis_bv_material_state_manager_set_non_uniform_material_property(
272
270
const auto & mp = getVariable (m->b .mps , n);
273
271
const auto mpsize = getVariableSize (mp, m->b .hypothesis );
274
272
if (s == MGIS_BV_LOCAL_STORAGE) {
275
- setMaterialProperty (*m, n, {v, static_cast <index_type >(m->n * mpsize)},
273
+ setMaterialProperty (*m, n, {v, static_cast <mgis_size_type >(m->n * mpsize)},
276
274
mgis::behaviour::MaterialStateManager::LOCAL_STORAGE);
277
275
} else {
278
276
setMaterialProperty (
279
- *m, n, {v, static_cast <index_type >(m->n * mpsize)},
277
+ *m, n, {v, static_cast <mgis_size_type >(m->n * mpsize)},
280
278
mgis::behaviour::MaterialStateManager::EXTERNAL_STORAGE);
281
279
}
282
280
} catch (...) {
@@ -336,7 +334,6 @@ mgis_status mgis_bv_material_state_manager_set_non_uniform_mass_density(
336
334
mgis_bv_MaterialStateManager* const m,
337
335
mgis_real* const v,
338
336
const mgis_bv_MaterialStateManagerStorageMode s) {
339
- using index_type = mgis::span<mgis::real>::index_type;
340
337
if (m == nullptr ) {
341
338
return mgis_report_failure (" null state manager" );
342
339
}
@@ -345,10 +342,10 @@ mgis_status mgis_bv_material_state_manager_set_non_uniform_mass_density(
345
342
}
346
343
try {
347
344
if (s == MGIS_BV_LOCAL_STORAGE) {
348
- setMassDensity (*m, {v, static_cast <index_type >(m->n )},
345
+ setMassDensity (*m, {v, static_cast <mgis_size_type >(m->n )},
349
346
mgis::behaviour::MaterialStateManager::LOCAL_STORAGE);
350
347
} else {
351
- setMassDensity (*m, {v, static_cast <index_type >(m->n )},
348
+ setMassDensity (*m, {v, static_cast <mgis_size_type >(m->n )},
352
349
mgis::behaviour::MaterialStateManager::EXTERNAL_STORAGE);
353
350
}
354
351
} catch (...) {
@@ -410,7 +407,6 @@ mgis_bv_material_state_manager_set_uniform_external_state_variable(
410
407
const char * const n,
411
408
mgis_real* const v,
412
409
const mgis_bv_MaterialStateManagerStorageMode s) {
413
- using index_type = mgis::span<mgis::real>::index_type;
414
410
if (m == nullptr ) {
415
411
return mgis_report_failure (" null state manager" );
416
412
}
@@ -422,11 +418,11 @@ mgis_bv_material_state_manager_set_uniform_external_state_variable(
422
418
const auto esvsize = getVariableSize (esv, m->b .hypothesis );
423
419
if (s == MGIS_BV_LOCAL_STORAGE) {
424
420
setExternalStateVariable (
425
- *m, n, {v, static_cast <index_type >(esvsize)},
421
+ *m, n, {v, static_cast <mgis_size_type >(esvsize)},
426
422
mgis::behaviour::MaterialStateManager::LOCAL_STORAGE);
427
423
} else {
428
424
setExternalStateVariable (
429
- *m, n, {v, static_cast <index_type >(esvsize)},
425
+ *m, n, {v, static_cast <mgis_size_type >(esvsize)},
430
426
mgis::behaviour::MaterialStateManager::EXTERNAL_STORAGE);
431
427
}
432
428
} catch (...) {
@@ -441,7 +437,6 @@ mgis_bv_material_state_manager_set_non_uniform_external_state_variable(
441
437
const char * const n,
442
438
mgis_real* const v,
443
439
const mgis_bv_MaterialStateManagerStorageMode s) {
444
- using index_type = mgis::span<mgis::real>::index_type;
445
440
if (m == nullptr ) {
446
441
return mgis_report_failure (" null state manager" );
447
442
}
@@ -453,11 +448,11 @@ mgis_bv_material_state_manager_set_non_uniform_external_state_variable(
453
448
const auto esvsize = getVariableSize (esv, m->b .hypothesis );
454
449
if (s == MGIS_BV_LOCAL_STORAGE) {
455
450
setExternalStateVariable (
456
- *m, n, {v, static_cast <index_type >(esvsize * m->n )},
451
+ *m, n, {v, static_cast <mgis_size_type >(esvsize * m->n )},
457
452
mgis::behaviour::MaterialStateManager::LOCAL_STORAGE);
458
453
} else {
459
454
setExternalStateVariable (
460
- *m, n, {v, static_cast <index_type >(esvsize * m->n )},
455
+ *m, n, {v, static_cast <mgis_size_type >(esvsize * m->n )},
461
456
mgis::behaviour::MaterialStateManager::EXTERNAL_STORAGE);
462
457
}
463
458
} catch (...) {
0 commit comments