[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Petsc + Matlab Compute Engine
- To: petsc-users@xxxxxxxxxxx
- Subject: Re: Petsc + Matlab Compute Engine
- From: "Matthew Knepley" <knepley@xxxxxxxxx>
- Date: Tue, 18 Dec 2007 08:02:53 -0600
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=tEx1X91t4NCB6oNsSp9jSqNfTZX1ZrgVwNZGw0CIJvo=; b=HD5AKsYykBvNL1dIrvDJwbLEhXcHLk5WRkx1pOHRKFXJjI8+DslhAsK4trgIQjfQRDhS6wmNMySOzL21fIpGFbairPcvlmASWjgkj0fk7rxT585bUwPXGb3eqLUNmnf1BxeCN/SHWu5qSY0KDOeIdVUDWEQeKiHKjhRUeUKxORw=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=P92dmP/YTkxZp1D1bVaecg/l5Xcuj9WEpTfi35ovf6L/tK8fvi6CscFpbHDc5d2dvqZzWWdxHgjSRKDwIvjlWJF6oms4zDoHTO+Aw2795+8DkRFQ+ItC6EubNZkbcCR80aviO8j8ZMaN1b0a+YN50zwsebFrm883ecmWprzruXQ=
- In-reply-to: <F2AD9323108DCB46B251816E1C6C0400022AA8@SWIFT.uz.kuleuven.ac.be>
- References: <F2AD9323108DCB46B251816E1C6C0400022AA8@SWIFT.uz.kuleuven.ac.be>
- Reply-to: petsc-users@xxxxxxxxxxx
- Sender: owner-petsc-users@xxxxxxxxxxx
If you want to use the Matlab engine, you must configure PETSc to use
Matlab, --with-matlab-dir=<Matlab directory> --with-matlab-engine.
Thanks,
Matt
On Dec 18, 2007 6:22 AM, Thomas Fabry <thomas.fabry@xxxxxxxxxxxxxxxxx> wrote:
> I have a problem using the Matlab Compute Engine via Petsc.
> The line
>
> ierr = PetscMatlabEngineCreate(PETSC_COM_WORLD,PETSC_NULL,e);
> CHKERRQ(ierr);
>
> and using this makefile:
>
> CFLAGS = -c -I/usr/local/matlab14.3/extern/include
> -I/usr/local/matlab14.3/simulink/include
> FFLAGS = -I${PETSC_DIR}/include/finclude
> CPPFLAGS =
> FPPFLAGS =
>
> include ${PETSC_DIR}/bmake/common/base
>
> secondPETScTest: secondPETScTest.o
> -${CLINKER} -o secondPETScTest secondPETScTest.o
> ${PETSC_KSP_LIB}
> ${RM} secondPETScTest.o
>
> secondPETScTestm: secondPETScTest.o chkopts
> -${CLINKER} -O -pthread -shared -m32
> -Wl,--version-script,/usr/local/matlab14.3/extern/lib/glnx86/mexFunction
> .map -o secondPETScTest secondPETScTest.o
> -Wl,-rpath-link,/usr/local/matlab14.3/bin/glnx86
> -L/usr/local/matlab14.3/bin/glnx86 -lmx -lmex -lmat -lm -lstdc++
> ${PETSC_KSP_LIB}
> ${RM} secondPETScTest.o
>
> gives "/PETSc impl/secondPETScTest.c:38: undefined reference to
> `PetscMatlabEngineCreate'" when trying make secondPETScTest, and when I
> compile with make secondPETScTestm, compilation works, but running the
> program gives a segmentation fault.
>
>
> I hope someone can help me
>
> Kind regards
>
> Thomas Fabry
>
>
>
>
>
--
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which
their experiments lead.
-- Norbert Wiener