error 155 ( material index out of bounds) #61
-
When I am running the simulation I am getting error: <<<+- parallelization init -+>>> Open MPI v4.1.6, package: Debian OpenMPI, ident: 4.1.6, repo rev: v4.1.6, Sep 30, 2023 MPI processes: 1 <<<+- CLI init -+>>>
/ / //// _/ / / //// // // // F. Roters et al., Computational Materials Science 158:420–478, 2019 S. Balay et al., PETSc/TAO User Manual Revision 3.19 Version: v3.0.1 Compiled with: GCC version 13.2.0 Compiled on: Nov 26 2024 at 06:36:02 PETSc version: 3.19.6 Date: 19/02/2025 Host name: bc8aac479344 Command line call: DAMASK_grid --load tension1Z.yaml --geom simulation6.vti --material material.yaml Working directory: /wd <<<+- system_routines init -+>>> <<<+- prec init -+>>> integer size / bit: 32 real size / bit: 64 <<<+- misc init -+>>> <<<+- IO init -+>>> <<<+- base64 init -+>>> <<<+- types init -+>>> <<<+- YAML init -+>>> libfyaml powered <<<+- HDF5_utilities init -+>>> <<<+- result init -+>>> M. Diehl et al., Integrating Materials and Manufacturing Innovation 6(1):83–91, 2017 <<<+- config init -+>>> reading material configuration <<<+- math init -+>>> size of random seed: 8 <<<+- rotations init -+>>> D. Rowenhorst et al., Modelling and Simulation in Materials Science and Engineering 23:083501, 2015 <<<+- polynomials init -+>>> <<<+- tables init -+>>> <<<+- crystal init -+>>> <<<+- discretization_grid init -+>>> cells: 50 × 8 × 1 <<<+- discretization init -+>>> <<<+- material init -+>>> ┌─────────────────────────────────────────────────────────────────────┐ DAMASK terminated on: I have attached y input files. I have 10 grains in my vti file and I have defined orientation for 10 grains in my material.yaml file, then why this error "More materials requested than found in material.yaml". Kindly guide how to resolve it? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hello, the problem is that you defined the material indices in your .vti from 1-10, instead of from 0-9. Since you only define 10 materials in your material.yaml, the first one at the 0th increment is ignored and the tenth one is not found, hence the error. Here is a clarifying slide: |
Beta Was this translation helpful? Give feedback.
Hello,
the problem is that you defined the material indices in your .vti from 1-10, instead of from 0-9. Since you only define 10 materials in your material.yaml, the first one at the 0th increment is ignored and the tenth one is not found, hence the error. Here is a clarifying slide: