Re: [deal.II] Re: Synchronization issue for parallel computation of material forces
Seyed, Thats a compile-time error, not a run-time error. I bet that your output_results() function is marked as const, so you cannot modify the configurational_forces vector unless its mutable. But if you have any doubts, stick to what’s done in step-40. I’m not particularly familiar with the way that one does things with PETSc vectors, but the principles that I mentioned earlier still apply. Best, Jean-Paul > On 04 Feb 2017, at 23:09, 'Seyed Ali Mohseni' via deal.II User Group >wrote: > > output_results() -- The deal.II project is located at http://www.dealii.org/ For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en --- You received this message because you are subscribed to the Google Groups "deal.II User Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to dealii+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[deal.II] Re: Synchronization issue for parallel computation of material forces
Thanks, Jean-Paul. I was thinking maybe something in the same way like step-40. I tried your approach, but can I just set it equal to each other? I did the following: *Main class* LA::MPI::Vector configurational_forces; LA::MPI::Vector local_configurational_forces; *setup_system() class* configurational_forces.reinit(locally_owned_dofs, locally_relevant_dofs, mpi_com); *compute_config_forces() class* Vector cell_cf(dofs_per_cell); // Cell Configurational forces typename DoFHandler::active_cell_iterator cell = dof_handler.begin_active(), endc = dof_handler.end(); for (; cell != endc; ++cell) { if ( cell->is_locally_owned() ) { fe_values.reinit(cell); cell_cf = 0; ... // Configurational force computation ... ... cell->get_dof_indices(local_dof_indices); constraints.distribute_local_to_global(cell_cf, local_dof_indices, *local_configurational_forces*); } } *local_configurational_forces*.compress(VectorOperation::add); *output_results() class* // [ CONFIGURATIONAL FORCES ]== configurational_forces = local_configurational_forces; *(here I receive an error!)* std::vector configurational_forces_magnitude(dim, "config_forces"); std::vector configurational_forces_interpretation(dim, DataComponentInterpretation::component_is_part_of_vector); data_out.add_data_vector(configurational_forces, configurational_forces_magnitude, DataOut::type_dof_data, configurational_forces_interpretation); I receive the following error: make all Scanning dependencies of target solid_mechanics [ 50%] Building CXX object CMakeFiles/solid_mechanics.dir/solid_mechanics.cc.o /home/seyedali/fe_models/deal.II/solid_mechanics/solid_mechanics.cc(950): error: no operator "=" matches these operands operand types are: const dealii::LinearAlgebraPETSc::MPI::Vector = const dealii::LinearAlgebraPETSc::MPI::Vector configurational_forces = local_configurational_forces; ^ detected during: instantiation of "void SolidMechanics::do_initial_timestep() [with dim=2]" at line 1081 instantiation of "void SolidMechanics::run() [with dim=2]" at line 1113 compilation aborted for /home/seyedali/fe_models/deal.II/solid_mechanics/solid_mechanics.cc (code 2) make[2]: *** [CMakeFiles/solid_mechanics.dir/solid_mechanics.cc.o] Fehler 2 CMakeFiles/solid_mechanics.dir/build.make:62: die Regel für Ziel „CMakeFiles/solid_mechanics.dir/solid_mechanics.cc.o“ scheiterte CMakeFiles/Makefile2:195: die Regel für Ziel „CMakeFiles/solid_mechanics.dir/all“ scheiterte make[1]: *** [CMakeFiles/solid_mechanics.dir/all] Fehler 2 Makefile:83: die Regel für Ziel „all“ scheiterte make: *** [all] Fehler 2 I assume the size doesn't match. Can I really just write it like you suggested? Kind regards, S. A. Mohseni -- The deal.II project is located at http://www.dealii.org/ For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en --- You received this message because you are subscribed to the Google Groups "deal.II User Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to dealii+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [deal.II] Re: Re_Error during installation of dealii.8.4.1
On 02/04/2017 07:18 AM, Timo Heister wrote: Now the installation says that there is no write permission on that particular drive after 100% completion. what is your CMAKE_INSTALL_PREFIX set to? It should be set to something in your home directory. In particular you set it to /path/to/install/dir/, which is a path you want to replace by the one where you want to install deal.II in :-) Best W. -- Wolfgang Bangerth email: bange...@colostate.edu www: http://www.math.colostate.edu/~bangerth/ -- The deal.II project is located at http://www.dealii.org/ For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en --- You received this message because you are subscribed to the Google Groups "deal.II User Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to dealii+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [deal.II] Re: Re_Error during installation of dealii.8.4.1
> Now the installation says that there is no write permission on that > particular drive after 100% completion. what is your CMAKE_INSTALL_PREFIX set to? It should be set to something in your home directory. See https://urldefense.proofpoint.com/v2/url?u=https-3A__www.dealii.org_8.4.1_readme.html-23configuration=CwIBaQ=Ngd-ta5yRYsqeUsEDgxhcqsYYY1Xs5ogLxWPA_2Wlc4=4k7iKXbjGC8LfYxVJJXiaYVu6FRWmEjX38S7JmlS9Vw=-HpOF3nZO7usbZKUqlFkmaY55JD5H1TJKYm_LqE5jeM=xVW8CkEyPPj4GOOvH56EdREUuEBa0kS8w5Mt65X6hxc= -- Timo Heister http://www.math.clemson.edu/~heister/ -- The deal.II project is located at http://www.dealii.org/ For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en --- You received this message because you are subscribed to the Google Groups "deal.II User Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to dealii+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [deal.II] Re: Re_Error during installation of dealii.8.4.1
Hi Bruno and Wolfgang I performed a clean installation in a new directory and it still does not work. Now the installation says that there is no write permission on that particular drive after 100% completion. *[100%] Built target deal_II.g* *Install the project...* *-- Install configuration: "DebugRelease"* *CMake Error at cmake/scripts/cmake_install.cmake:36 (FILE):* * file cannot create directory: /path/to/install/dir/share/deal.II/scripts.* * Maybe need administrative privileges.* *Call Stack (most recent call first):* * cmake_install.cmake:37 (INCLUDE)* *make: *** [install] Error 1* I have attached the complete summary and log files. Kindly let me know what can be done. Kind regards Sathish On Friday, 3 February 2017 00:04:11 UTC+1, Wolfgang Bangerth wrote: > > On 02/02/2017 03:41 PM, Sathish Kumar wrote: > > // > > /icpc: command line warning #10006: ignoring unknown option > '-fuse-ld=gold'/ > > /lac/CMakeFiles/obj_lac.debug.dir/sparse_matrix_inst2.cc.o: file not > > recognized: File format not recognized/ > > This typically happens if you compile in the same directory in which a > previous compile job aborted because of a compiler error, because you > were out of memory, or some other reason. In that case, the previous > compiler run left an unfinished object file that the subsequent compiler > run recognizes as "up to date" (because it's newer than its source > files) but can't read successfully. > > The solution is to do 'make clean' or just to blow away the build > directory and start again. > > Best > W. > > -- > > Wolfgang Bangerth email: bang...@colostate.edu > > www: http://www.math.colostate.edu/~bangerth/ > -- The deal.II project is located at http://www.dealii.org/ For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en --- You received this message because you are subscribed to the Google Groups "deal.II User Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to dealii+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. ### # # deal.II configuration: #CMAKE_BUILD_TYPE: DebugRelease #BUILD_SHARED_LIBS: ON #CMAKE_INSTALL_PREFIX: /path/to/install/dir #CMAKE_SOURCE_DIR: /data/leuven/313/vsc31383/dealii/deal.II #(version 8.4.1) #CMAKE_BINARY_DIR: /data/leuven/313/vsc31383/dealii/build #CMAKE_CXX_COMPILER: Intel 15.0.0.20140723 on platform Linux x86_64 # /apps/leuven/thinking/2014a/software/icc/2015.0.090/bin/icpc #CMAKE_C_COMPILER: /apps/leuven/thinking/2014a/software/icc/2015.0.090/bin/icc #CMAKE_Fortran_COMPILER: /apps/leuven/thinking/2014a/software/ifort/2013.5.192/bin/intel64/ifort #CMAKE_GENERATOR:Unix Makefiles # # Base configuration (prior to feature configuration): #DEAL_II_CXX_FLAGS:-fpic -ansi -w2 -wd68 -wd135 -wd175 -wd177 -wd191 -wd193 -wd279 -wd327 -wd383 -wd981 -wd1418 -wd1478 -wd1572 -wd2259 -wd21 -wd2536 -wd15531 -wd111 -wd128 -wd185 -wd280 -qopenmp-simd -Wno-return-type #DEAL_II_CXX_FLAGS_RELEASE:-O2 -no-ansi-alias -ip -funroll-loops -no-vec #DEAL_II_CXX_FLAGS_DEBUG: -O0 -g -gdwarf-2 -grecord-gcc-switches #DEAL_II_LINKER_FLAGS: -Wl,--as-needed -shared-intel -rdynamic -fuse-ld=gold -qopenmp #DEAL_II_LINKER_FLAGS_RELEASE: #DEAL_II_LINKER_FLAGS_DEBUG: #DEAL_II_DEFINITIONS: #DEAL_II_DEFINITIONS_RELEASE: #DEAL_II_DEFINITIONS_DEBUG:DEBUG #DEAL_II_USER_DEFINITIONS: #DEAL_II_USER_DEFINITIONS_REL: #DEAL_II_USER_DEFINITIONS_DEB: DEBUG #DEAL_II_INCLUDE_DIRS #DEAL_II_USER_INCLUDE_DIRS: #DEAL_II_BUNDLED_INCLUDE_DIRS: #DEAL_II_LIBRARIES:m #DEAL_II_LIBRARIES_RELEASE: #DEAL_II_LIBRARIES_DEBUG: # # Configured Features (DEAL_II_ALLOW_BUNDLED = ON, DEAL_II_ALLOW_AUTODETECTION = ON): # ( DEAL_II_WITH_64BIT_INDICES = OFF ) # ( DEAL_II_WITH_ARPACK = OFF ) #DEAL_II_WITH_BOOST set up with bundled packages #BOOST_BUNDLED_INCLUDE_DIRS = /data/leuven/313/vsc31383/dealii/deal.II/bundled/boost-1.56.0/include #BOOST_LIBRARIES = rt # ( DEAL_II_WITH_BZIP2 = OFF ) # ( DEAL_II_WITH_CXX11 = OFF ) # ( DEAL_II_WITH_CXX14 = OFF ) # ( DEAL_II_WITH_HDF5 = OFF ) #DEAL_II_WITH_LAPACK set up with external dependencies #LAPACK_LINKER_FLAGS = #LAPACK_LIBRARIES =