<div dir="ltr"><div dir="ltr">Matt, (cc'ing Matt M.).<br><div>Thanks, that looks pretty straight forward.</div><div><br></div><div>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></div><div><br></div><div>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><br></div><div>I have rebased the branch over main and am testing it now.</div><div><br></div><div>Thanks,</div><div>Mark</div><div><br></div><div>import config.package<br>import os<br><br>class Configure(config.package.CMakePackage):<br>  def __init__(self, framework):<br>    config.package.CMakePackage.__init__(self, framework)<br>    self.gitcommit        = '5fc1b2c76fe1d6787387f5c9600759d4cbf26a88' # jolivet/feature-mmg-install-3.16.0 sep-29-2021<br>    self.download         = ['git://<a href="https://github.com/prj-/mmg.git">https://github.com/prj-/mmg.git</a>','<a href="https://github.com/prj-/mmg/archive/'+self.gitcommit+'.tar.gz">https://github.com/prj-/mmg/archive/'+self.gitcommit+'.tar.gz</a>']<br>    self.versionname      = 'MMG_VERSION_RELEASE'<br>    self.includes         = ['mmg/libmmg.h']<br>    self.liblist          = [['libmmg.a','libmmg3d.a']]<br>    self.functions        = ['MMG5_paramUsage1']<br>    self.precisions       = ['double']<br>    return<br><br>  def setupDependencies(self, framework):<br>    config.package.CMakePackage.setupDependencies(self, framework)<br>    self.externalpackagesdir = framework.require('PETSc.options.externalpackagesdir',self)<br>    self.compilerFlags = framework.require('config.compilerFlags',self)<br>    self.mathlib       = framework.require('config.packages.mathlib',self)<br>    self.ptscotch      = framework.require('config.packages.PTScotch',self)<br>    self.deps          = [self.mathlib,self.ptscotch]<br>    return<br><br>  def formCMakeConfigureArgs(self):<br>    args = config.package.CMakePackage.formCMakeConfigureArgs(self)<br>    args.append('-DUSE_ELAS=OFF')<br>    args.append('-DUSE_VTK=OFF')<br>    args.append('-DUSE_POINTMAP=ON')<br>    args.append('-DSCOTCH_DIR:STRING="'+self.ptscotch.directory+'"')<br>    return args<br><br>  def configureLibrary(self):<br>    config.package.CMakePackage.configureLibrary(self)<br></div><div><br></div></div><br><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">knepley@gmail.com</a>> wrote:<br></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"><div dir="ltr">On Tue, Oct 19, 2021 at 9:32 AM Mark Adams <<a href="mailto:mfadams@lbl.gov" target="_blank">mfadams@lbl.gov</a>> wrote:<br></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">cmake</div></blockquote><div><br></div><div>barf. Clone one of those, like mmg.py or AMReX.py</div><div><br></div><div>  Thanks,</div><div><br></div><div>    Matt</div><div> </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">knepley@gmail.com</a>> wrote:<br></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"><div dir="ltr">On Tue, Oct 19, 2021 at 8:17 AM Mark Adams <<a href="mailto:mfadams@lbl.gov" target="_blank">mfadams@lbl.gov</a>> wrote:<br></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">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><br></div><div>I'm looking for advice on how to proceed.</div><div><br></div><div>Should I look at a simple example and clone it?</div></div></blockquote><div><br></div><div>What build system does it use?</div><div><br></div><div>  Thanks,</div><div><br></div><div>    Matt</div><div> </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"><div>Thanks,</div><div>Mark</div><div><br></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div><div><br></div><div><a href="http://www.cse.buffalo.edu/~knepley/" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div>
</blockquote></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div><div><br></div><div><a href="http://www.cse.buffalo.edu/~knepley/" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div>
</blockquote></div></div>