Skip to content
Daiane Iglesia Dolci edited this page May 22, 2024 · 4 revisions

My notes

22/05/2024 See this text:

mesh = UnitSquareMesh(1,1)
V = FunctionSpace(mesh, "CG", 1)
R = FunctionSpace(mesh, "R", 0)
v = TestFunction(V)
u0 = Function(V)
u1 = Function(V)

ui = Function(R, val=2.0)
c = Control(ui)
u0.assign(ui)
F = dot(v, (u1-u0))*dx - dot(v, u0*u1)*dx
problem = NonlinearVariationalProblem(F, u1)
solver = NonlinearVariationalSolver(problem)
solver.solve()
u0.assign(u1)
solver.solve()
J = assemble(dot(u1, u1)*dx)
rf = ReducedFunctional(J, c)
assert taylor_test(rf, ui, Constant(0.1)) > 1.95


03/04/2024: /hombrew/openblas does not work for MacOS:

Steps to reproduce:

python3 firedrake-install --with-blas /opt/homebrew/opt/openblas

Error:

*********************************************************************************************
           UNABLE to CONFIGURE with GIVEN OPTIONS (see configure.log for details):
---------------------------------------------------------------------------------------------
                         Error running make; make install on PNETCDF
*********************************************************************************************
  File "/Users/ddolci/tes_fire_install/firedrake_test/src/petsc/config/configure.py", line 462, in petsc_configure
    framework.configure(out = sys.stdout)
  File "/Users/ddolci/tes_fire_install/firedrake_test/src/petsc/config/BuildSystem/config/framework.py", line 1452, in configure
    self.processChildren()
  File "/Users/ddolci/tes_fire_install/firedrake_test/src/petsc/config/BuildSystem/config/framework.py", line 1440, in processChildren
    self.serialEvaluation(self.childGraph)
  File "/Users/ddolci/tes_fire_install/firedrake_test/src/petsc/config/BuildSystem/config/framework.py", line 1415, in serialEvaluation
    child.configure()
  File "/Users/ddolci/tes_fire_install/firedrake_test/src/petsc/config/BuildSystem/config/package.py", line 1337, in configure
    self.executeTest(self.configureLibrary)
  File "/Users/ddolci/tes_fire_install/firedrake_test/src/petsc/config/BuildSystem/config/base.py", line 138, in executeTest
    ret = test(*args,**kargs)
          ^^^^^^^^^^^^^^^^^^^
  File "/Users/ddolci/tes_fire_install/firedrake_test/src/petsc/config/BuildSystem/config/package.py", line 1023, in configureLibrary
    for location, directory, lib, incl in self.generateGuesses():
  File "/Users/ddolci/tes_fire_install/firedrake_test/src/petsc/config/BuildSystem/config/package.py", line 591, in generateGuesses
    d = self.checkDownload()
        ^^^^^^^^^^^^^^^^^^^^
  File "/Users/ddolci/tes_fire_install/firedrake_test/src/petsc/config/BuildSystem/config/package.py", line 725, in checkDownload
    return self.getInstallDir()
           ^^^^^^^^^^^^^^^^^^^^
  File "/Users/ddolci/tes_fire_install/firedrake_test/src/petsc/config/BuildSystem/config/package.py", line 527, in getInstallDir
    installDir = self.Install()
                 ^^^^^^^^^^^^^^
  File "/Users/ddolci/tes_fire_install/firedrake_test/src/petsc/config/BuildSystem/config/package.py", line 1875, in Install
    raise RuntimeError('Error running make; make install on '+self.PACKAGE)

Home

Building locally
Tips

Install Frequently Asked Questions

Running on HPC

Users

Developers Notes

Minutes and agenda of Firedrake meetings


Policies and procedures

Gravity wave scaling

Merge Complex Sprint

Reading Group

Firedrake 2021 Planning Meetings
Clone this wiki locally