parallel computating on c++ DOLFIN 1.0
Hello,
I would like to use the parallel computing with 4 processors on my laptop. I am using C++ DOLFIN 1.0.
My code:
int main()
{
parameters[
....
printf("Initial position: %d, x=%f, y=%f\n"
Function Ini(V);
Ini.
Signal:
double signal_value = assemble(signal);
printf("The signal of v before normolizing is: %.15g\n", signal_value);
Ini.
signal_value = assemble(signal);
printf("The signal of v after normolizing is: %.15g\n", signal_value);
........
}
where "Signal.ufl" has the contents
element = FiniteElement(
v = Coefficient(
M = v*dx
errors:
Initial position: 480, x=0.000000, y=0.000000
*** Warning: Form::coloring does not properly consider form type.
[0]PETSC ERROR: -------
[0]PETSC ERROR: Caught signal number 11 SEGV: Segmentation Violation, probably memory access out of range
[0]PETSC ERROR: Try option -start_in_debugger or -on_error_
[0]PETSC ERROR: or see http://
[0]PETSC ERROR: configure using --with-
[0]PETSC ERROR: to get more information on the crash.
[0]PETSC ERROR: -------
[0]PETSC ERROR: Signal received!
[0]PETSC ERROR: -------
[0]PETSC ERROR: Petsc Release Version 3.1.0, Patch 5, Mon Sep 27 11:51:54 CDT 2010
[0]PETSC ERROR: See docs/changes/
[0]PETSC ERROR: See docs/faq.html for hints about trouble shooting.
[0]PETSC ERROR: See docs/index.html for manual pages.
[0]PETSC ERROR: -------
[0]PETSC ERROR: Unknown Name on a linux-gnu named ubuntu by nguyenvandang Mon Oct 3 05:10:37 2011
[0]PETSC ERROR: Libraries linked from /build/
[0]PETSC ERROR: Configure run at Mon Mar 7 18:34:33 2011
[0]PETSC ERROR: Configure options --with-shared --with-debugging=0 --useThreads 0 --with-
[0]PETSC ERROR: -------
[0]PETSC ERROR: User provided function() line 0 in unknown directory unknown file
-------
MPI_ABORT was invoked on rank 0 in communicator MPI_COMM_WORLD
with errorcode 59.
NOTE: invoking MPI_ABORT causes Open MPI to kill all MPI processes.
You may or may not see output from other processes, depending on
exactly when Open MPI kills them.
-------
When I closed two lines related to "signal_value = assemble(signal);", it worked. Can you help me to fix this problem?
Thanks in advance,
Nguyen Van Dang
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- DOLFIN Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Nguyen Van Dang for more information if necessary.