{"id":980,"date":"2017-03-08T08:14:32","date_gmt":"2017-03-08T15:14:32","guid":{"rendered":"http:\/\/somethingk.com\/main\/?p=980"},"modified":"2017-03-08T08:14:32","modified_gmt":"2017-03-08T15:14:32","slug":"aztecoo-catastrophic-error-cannot-open-source-file-epetra_map-h","status":"publish","type":"post","link":"https:\/\/somethingk.com\/main\/aztecoo-catastrophic-error-cannot-open-source-file-epetra_map-h\/","title":{"rendered":"AztecOO catastrophic error: cannot open source file &#8220;Epetra_Map.h&#8221;"},"content":{"rendered":"<p>A while back I was trying to compile the AztecOO library outside of Trilinous.  See <a href=\"http:\/\/somethingk.com\/main\/?p=965\">this<\/a> early post for more details. In doing so, I received the following error:<\/p>\n<p><code>catastrophic error: cannot open source file \"Epetra_Map.h\"<\/code><\/p>\n<p><a href=\"http:\/\/somethingk.com\/main\/wp-content\/uploads\/2017\/03\/unnamed.png\"><img fetchpriority=\"high\" decoding=\"async\" src=\"http:\/\/somethingk.com\/main\/wp-content\/uploads\/2017\/03\/unnamed.png\" alt=\"\" width=\"812\" height=\"62\" class=\"aligncenter size-full wp-image-981\" srcset=\"https:\/\/somethingk.com\/main\/wp-content\/uploads\/2017\/03\/unnamed.png 812w, https:\/\/somethingk.com\/main\/wp-content\/uploads\/2017\/03\/unnamed-300x23.png 300w, https:\/\/somethingk.com\/main\/wp-content\/uploads\/2017\/03\/unnamed-768x59.png 768w\" sizes=\"(max-width: 812px) 100vw, 812px\" \/><\/a><\/p>\n<p>Solution<br \/>\nAztec requires quite a few of the additional tilinous header files. I copied a couple addition src directories from trilinous to my Aztec src folder. The list below shows everything I copied into source. I recommend you keep your AztecOO src directory organized and make folders for the external libraries.  Also make sure to have correctly included directories with \u2013I<DIRECTORY> in the compile statement to ensure that the compiler looks into the Aztec src directory for the correct files.<\/p>\n<p>Directories I copied:<br \/>\n<code>trilinos-11.10.1-Source\/packages\/epetra\/src<br \/>\ntrilinos-11.10.1-Source\/packages\/teuchos\/core\/src<br \/>\ntrilinos-11.10.1-Source\/packages\/teuchos\/comm\/src<br \/>\ntrilinos-11.10.1-Source\/packages\/teuchos\/parameterlist \/src<br \/>\ntrilinos-11.10.1-Source\/packages\/epetraext\/src<\/code><\/p>\n<p>Files<br \/>\n<code>trilinos-11.10.1-Source\/packages\/triutils\/src\/Trilinos_Util.h<br \/>\ntrilinos-11.10.1-Source\/packages\/triutils\/src\/Trilinos_Util_ReadMatrixMarket2Epetra.h<br \/>\ntrilinos-11.10.1-Source\/packages\/epetraext\/src\/inout\/EpetraExt_OperatorOut.h<br \/>\ntrilinos-11.10.1-Source\/packages\/epetraext\/src\/EpetraExt_ConfigDefs.h<\/code><\/p>\n<p>I also copied the additional files from the build version of trilinous (these files are generated upon \u2018make\u2019 in Trilinous).<\/p>\n<p><code>trilinos.build\/packages\/epetra\/src\/Epetra_config.h<br \/>\ntrilinos.build\/packages\/epetra\/src\/Epetra_DLLExportMacro.h<br \/>\ntrilinos.build>\/packages\/teuchos\/core\/src\/Teuchos_config.h<br \/>\ntrilinos.build\/Trilinos_version.h<br \/>\ntrilinos.build\/packages\/triutils\/src\/Triutils_config.h<br \/>\ntrilinos.build\/packages\/teuchos\/core\/src\/Teuchos_config.h<\/code><\/p>\n<p>I also had to remove some directories<br \/>\n<code>aztecoo\/example<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>A while back I was trying to compile the AztecOO library outside of Trilinous. See this early post for more details. In doing so, I received the following error: catastrophic error: cannot open source file &#8220;Epetra_Map.h&#8221; Solution Aztec requires quite a few of the additional tilinous header files. I copied a couple addition src directories from trilinous to my Aztec [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[177,6],"tags":[469,303,257,468],"class_list":["post-980","post","type-post","status-publish","format-standard","hentry","category-development","category-linux","tag-aztecoo","tag-c","tag-compile","tag-trilinous"],"_links":{"self":[{"href":"https:\/\/somethingk.com\/main\/wp-json\/wp\/v2\/posts\/980","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/somethingk.com\/main\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/somethingk.com\/main\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/somethingk.com\/main\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/somethingk.com\/main\/wp-json\/wp\/v2\/comments?post=980"}],"version-history":[{"count":1,"href":"https:\/\/somethingk.com\/main\/wp-json\/wp\/v2\/posts\/980\/revisions"}],"predecessor-version":[{"id":982,"href":"https:\/\/somethingk.com\/main\/wp-json\/wp\/v2\/posts\/980\/revisions\/982"}],"wp:attachment":[{"href":"https:\/\/somethingk.com\/main\/wp-json\/wp\/v2\/media?parent=980"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/somethingk.com\/main\/wp-json\/wp\/v2\/categories?post=980"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/somethingk.com\/main\/wp-json\/wp\/v2\/tags?post=980"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}