`assign` for `AllAtOnceFunction` and `AllAtOnceCofunction` should use `_vs_op` for all sources.

Aperta
#159 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
38/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
python
Ambito
backend

Direzione di ricerca

Start with the assign implementation and its _vs_op utility, comparing the Vec path with the existing handling for AllAtOnceFunction and Function. Run test_allatoncesolver::test_solve_heat_equation and the assign tests; done means _vs_op works for all sources without the heat-equation failure.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug Core functionality

In #158 I tried to change the assign implementation to just use the _vs_op utility method to reuse the logic for dealing with assigning from another AllAtOnceFunction, a Vec, or a Function. This passes all assign tests.

However, test_allatoncesolver::test_solve_heat_equation fails if _vs_op is used to assign from a Vec. The only difference is whether the aaofunc.global_vec is accessed via read/write access or just write access. This shouldn't make a difference because the vec is overwritten with the new value anyway, but it makes the test fail.
For the time being I've just left the old assign implementation for Vec. Although using _vs_op is just a nice way of reusing code, we should track down why it fails because there may be some other underlying issue.

Lingua principale
Python
Stelle
4
Fork
2
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di firedrakeproject/asQ

Tutte le issue di firedrakeproject/asQ

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.