File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -691,3 +691,33 @@ TEST(OptimizeTests, mesh_ffc_test_aug_lag) {
691691 bool good = check_constraint_violations (app, 20.0e-1 );
692692 ASSERT_TRUE (good);
693693}
694+
695+ // ---------------------------------------------------------------------------
696+ TEST (OptimizeTests, disentangled_spatiotemporal_test) {
697+ setupenv (std::string (TEST_DATA_DIR) + " /optimize/disentangled_spatiotemporal" );
698+
699+ std::remove (" test1_particles/ID01_TIME01_world.particles" );
700+
701+ Optimize app;
702+ ProjectHandle project = std::make_shared<Project>();
703+ ASSERT_TRUE (project->load (" test1.xlsx" ));
704+ OptimizeParameters params (project);
705+ ASSERT_TRUE (params.set_up_optimize (&app));
706+ bool runStatus = app.Run ();
707+
708+ ASSERT_TRUE (runStatus);
709+
710+ // compute and test stats
711+ ParticleShapeStatistics stats;
712+ stats.ReadPointFiles (" test1_analyze.xml" );
713+ stats.ComputeModes ();
714+ stats.PrincipalComponentProjections ();
715+
716+ auto values = stats.Eigenvalues ();
717+ for (int i = 0 ; i < values.size (); i++) {
718+ std::cerr << " Eigenvalue " << i << " : " << values[i] << " \n " ;
719+ }
720+
721+ ASSERT_GT (values[values.size () - 1 ], 80000 );
722+ ASSERT_LT (values[values.size () - 2 ], 200 );
723+ }
You can’t perform that action at this time.
0 commit comments