<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 19 Oct 2021, at 6:03 PM, Mark Adams <<a href="mailto:mfadams@lbl.gov" class="">mfadams@lbl.gov</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div dir="ltr" class="">Matt, (cc'ing Matt M.).<br class=""><div class="">Thanks, that looks pretty straight forward.</div><div class=""><br class=""></div><div class="">Matt M: I'm not very familiar with the configuration system. It might be best for you to ask questions directly instead of me hacking this up.</div><div class=""></div><div class=""><br class=""></div><div class="">mmg.py (appended) and AMReX.py are in petsc/config/BuildSystem/config/packages. I'm guessing it will be easiest to prune and clone AMReX.py (150 LOC)</div></div></div></div></blockquote><div><br class=""></div><div>I’d advise _not_ to use AMReX.py, as it is one of those weird packages that have self.builtafterpetsc = 1, and thus require a lot of unneeded LOC that you shouldn’t need for AMGx.</div><div>mmg.py has probably one of the lightest configure script indeed, alongside eigen.py (you’ll see they look similar, there is just the bare minimum).</div><div><br class=""></div><div>Thanks,</div><div>Pierre</div><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div dir="ltr" class=""><div class="">I have rebased the branch over main and am testing it now.</div><div class=""><br class=""></div><div class="">Thanks,</div><div class="">Mark</div><div class=""><br class=""></div><div class="">import config.package<br class="">import os<br class=""><br class="">class Configure(config.package.CMakePackage):<br class="">  def __init__(self, framework):<br class="">    config.package.CMakePackage.__init__(self, framework)<br class="">    self.gitcommit        = '5fc1b2c76fe1d6787387f5c9600759d4cbf26a88' # jolivet/feature-mmg-install-3.16.0 sep-29-2021<br class="">    self.download         = ['git://<a href="https://github.com/prj-/mmg.git" class="">https://github.com/prj-/mmg.git</a>','<a href="https://github.com/prj-/mmg/archive/'+self.gitcommit+'.tar.gz" class="">https://github.com/prj-/mmg/archive/'+self.gitcommit+'.tar.gz</a>']<br class="">    self.versionname      = 'MMG_VERSION_RELEASE'<br class="">    self.includes         = ['mmg/libmmg.h']<br class="">    self.liblist          = [['libmmg.a','libmmg3d.a']]<br class="">    self.functions        = ['MMG5_paramUsage1']<br class="">    self.precisions       = ['double']<br class="">    return<br class=""><br class="">  def setupDependencies(self, framework):<br class="">    config.package.CMakePackage.setupDependencies(self, framework)<br class="">    self.externalpackagesdir = framework.require('PETSc.options.externalpackagesdir',self)<br class="">    self.compilerFlags = framework.require('config.compilerFlags',self)<br class="">    self.mathlib       = framework.require('config.packages.mathlib',self)<br class="">    self.ptscotch      = framework.require('config.packages.PTScotch',self)<br class="">    self.deps          = [self.mathlib,self.ptscotch]<br class="">    return<br class=""><br class="">  def formCMakeConfigureArgs(self):<br class="">    args = config.package.CMakePackage.formCMakeConfigureArgs(self)<br class="">    args.append('-DUSE_ELAS=OFF')<br class="">    args.append('-DUSE_VTK=OFF')<br class="">    args.append('-DUSE_POINTMAP=ON')<br class="">    args.append('-DSCOTCH_DIR:STRING="'+self.ptscotch.directory+'"')<br class="">    return args<br class=""><br class="">  def configureLibrary(self):<br class="">    config.package.CMakePackage.configureLibrary(self)<br class=""></div><div class=""><br class=""></div></div><br class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Oct 19, 2021 at 9:34 AM Matthew Knepley <<a href="mailto:knepley@gmail.com" class="">knepley@gmail.com</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr" class=""><div dir="ltr" class="">On Tue, Oct 19, 2021 at 9:32 AM Mark Adams <<a href="mailto:mfadams@lbl.gov" target="_blank" class="">mfadams@lbl.gov</a>> wrote:<br class=""></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr" class="">cmake</div></blockquote><div class=""><br class=""></div><div class="">barf. Clone one of those, like mmg.py or AMReX.py</div><div class=""><br class=""></div><div class="">  Thanks,</div><div class=""><br class=""></div><div class="">    Matt</div><div class=""> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Oct 19, 2021 at 9:26 AM Matthew Knepley <<a href="mailto:knepley@gmail.com" target="_blank" class="">knepley@gmail.com</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr" class=""><div dir="ltr" class="">On Tue, Oct 19, 2021 at 8:17 AM Mark Adams <<a href="mailto:mfadams@lbl.gov" target="_blank" class="">mfadams@lbl.gov</a>> wrote:<br class=""></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr" class="">We (Matt Martineau and I) are ready to work on the AMGx integration and I want to start by getting the AMGx download working.<div class=""><br class=""></div><div class="">I'm looking for advice on how to proceed.</div><div class=""><br class=""></div><div class="">Should I look at a simple example and clone it?</div></div></blockquote><div class=""><br class=""></div><div class="">What build system does it use?</div><div class=""><br class=""></div><div class="">  Thanks,</div><div class=""><br class=""></div><div class="">    Matt</div><div class=""> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr" class=""><div class="">Thanks,</div><div class="">Mark</div><div class=""><br class=""></div></div>
</blockquote></div><br clear="all" class=""><div class=""><br class=""></div>-- <br class=""><div dir="ltr" class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class="">What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br class="">-- Norbert Wiener</div><div class=""><br class=""></div><div class=""><a href="http://www.cse.buffalo.edu/~knepley/" target="_blank" class="">https://www.cse.buffalo.edu/~knepley/</a><br class=""></div></div></div></div></div></div></div></div>
</blockquote></div>
</blockquote></div><br clear="all" class=""><div class=""><br class=""></div>-- <br class=""><div dir="ltr" class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class="">What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br class="">-- Norbert Wiener</div><div class=""><br class=""></div><div class=""><a href="http://www.cse.buffalo.edu/~knepley/" target="_blank" class="">https://www.cse.buffalo.edu/~knepley/</a><br class=""></div></div></div></div></div></div></div></div>
</blockquote></div></div>
</div></blockquote></div><br class=""></body></html>