To receive notifications about scheduled maintenance, please subscribe to the mailing-list gitlab-operations@sympa.ethz.ch. You can subscribe to the mailing-list at https://sympa.ethz.ch

Commit 64a592db authored by Bastian Telgen's avatar Bastian Telgen
Browse files

add terminal output

parent 318db775
......@@ -75,6 +75,8 @@ using elements::tensor::as_vector;
int main(int argc, char **argv) {
const auto context = Context(&argc, &argv);
PetscPrintf(Policy::communicator(), "Read config\n");
auto index = Mesh::size_type(1);
std::string config_file = "/mnt/io/validation/data/cube.config";
std::string input_folder = "/mnt/io/validation/data/";
......@@ -116,9 +118,14 @@ int main(int argc, char **argv) {
auto assembler = Assembler();
PetscPrintf(Policy::communicator(), "Find periodic couples\n");
auto element_source = ae108::homogenization::utilities::assign_lattice_to(
geometry.connectivity(), geometry.positions(), lattice_vectors);
const auto source_of = ae108::homogenization::utilities::assign_lattice_to(
geometry.positions(), lattice_vectors);
PetscPrintf(Policy::communicator(), "Assemble mass and stiffness matrix\n");
for (const auto &element : mesh.localElements()) {
elements::tensor::Tensor<Mesh::real_type, coordinate_dimension>
element_axis;
......@@ -148,6 +155,7 @@ int main(int argc, char **argv) {
return K;
}();
PetscPrintf(Policy::communicator(), "Solve Bloch Eigenvalue Problems\n");
const auto M = [&]() {
auto M = Mesh::matrix_type::fromMesh(mesh);
assembler.assembleMassMatrix(&M);
......@@ -155,9 +163,6 @@ int main(int argc, char **argv) {
return M;
}();
const auto source_of = ae108::homogenization::utilities::assign_lattice_to(
geometry.positions(), lattice_vectors);
std::string line;
while (std::getline(fKpath, line)) {
std::stringstream linestream(line);
......@@ -209,4 +214,5 @@ int main(int argc, char **argv) {
}
fKpath.close();
fclose(out);
PetscPrintf(Policy::communicator(), "Everything is finished\n");
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment