Hello. I am trying to set initial composition ascii model in convection-box-3d from cookbooks. But when I run aspect I get following error:
An error occurred in line <139> of file </home/mk/source/aspect/source/initial_composition/interface.cc> in function
void aspect::InitialComposition::Manager<dim>::parse_parameters(dealii::ParameterHandler&) [with int dim = 3]
The violated condition was:
this->n_compositional_fields() > 0
Additional information:
A plugin for the initial composition condition was specified, but there is no compositional field. This can lead to errors within the initialization of the initial composition plugin and is therefore not supported. Please remove the initial composition plugin or add a compositional field.
My changes to the file convection-box-3d.prm:
subsection Initial composition model
set Model name = ascii data
subsection Ascii data model
set Data directory = prescribed_velocity/
set Data file name = test3d.txt
end
end
And here is content of test3d.txt:
# POINTS: 3 3 3
# Columns: x y z composition_1
0 0 0 1
0.5 0 0 1
1 0 0 1
0 0.5 0 1
0.5 0.5 0 2
1 0.5 0 1
0 1 0 1
0.5 1 0 1
1 1 0 1
0 0 0.5 1
0.5 0 0.5 1
1 0 0.5 1
0 0.5 0.5 1
0.5 0.5 0.5 2
1 0.5 0.5 1
0 1 0.5 1
0.5 1 0.5 1
1 1 0.5 1
0 0 1 1
0.5 0 1 1
1 0 1 1
0 0.5 1 1
0.5 0.5 1 2
1 0.5 1 1
0 1 1 1
0.5 1 1 1
1 1 1 1
Here is my aspect info:
-- This is ASPECT, the Advanced Solver for Problems in Earth's ConvecTion.
-- . version 2.1.0-pre (master, d74446cc3)
-- . using deal.II 9.0.1
-- . using Trilinos 12.10.1
-- . using p4est 2.0.0
-- . running in DEBUG mode
-- . running with 1 MPI process
I tried to set the filename so it referenced non-existed file, but had the same error as above. It looks like parsing doesn’t actually go to actual loading of a file, and the error arises earlier and has no to do with actual content of my ascii file.
Simulation successfully runs when I use 2d version of a problem (with changed ascii file for 2d case).
I would appreciate any advice. Thanks in advance.