[petsc-users] PETSc module using modules~ both using PETSc sys, DMDA, vec, etc

Jed Brown jed at jedbrown.org
Mon May 8 08:37:17 CDT 2017

Tina Patel <tinap89 at yahoo.com> writes:

> Hello,
> I created a few standalone programs that use a DMDA structure, calculate and create matrices. However, now that I am trying to combine them using a main and using the files as modules, the header files seem to consistently conflict. I am currently only trying to compile 3 files out of the several that i have completed. 
> when trying to compile 2 modules that i have, where the 1st module uses the 2nd module. Common errors that i am getting is the 
> "symbol 'xxx' ... conflicts with symbol from module 'utils', use-associated at ..."and"Cannot change attributes of USE-associated symbol xxxx at"
> Is there a method to go about this? 

Are these errors related to PETSc?  Note that if you reuse names in
different modules, you may need to do a selective import.

  use modulename, only: foo, bar=>baz
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20170508/d77d8698/attachment.pgp>

More information about the petsc-users mailing list