Skip to content

Relax assumption on BaseFormOperator's dual argument slot#283

Merged
dham merged 11 commits into
FEniCS:mainfrom
nbouziani:update_replace_get_shape
Jul 17, 2024
Merged

Relax assumption on BaseFormOperator's dual argument slot#283
dham merged 11 commits into
FEniCS:mainfrom
nbouziani:update_replace_get_shape

Conversation

@nbouziani

@nbouziani nbouziani commented May 2, 2024

Copy link
Copy Markdown
Contributor

This PR relaxes the assumption on the type of the object that goes into the dual argument slot of BaseFormOperators. Base form operators (e.g. ExternalOperator or Interpolate) of the form B: V -> V, or B: V x V* -> R, have an argument slot to represent their dual argument (the one in V*). Strictly speaking, whatever is in V* should be allowed to go in there. At the moment, the code assumes that only a Cofunction or a Form can be held in this slot. This PR extends that assumption to other cases such as Action or even BaseFormOperator.

@nbouziani nbouziani changed the title Update type check in replace Relax assumption on BaseFormOperator's dual argument slot May 3, 2024
@nbouziani nbouziani marked this pull request as draft May 3, 2024 04:38
@dham dham marked this pull request as ready for review July 17, 2024 15:43
@dham dham enabled auto-merge July 17, 2024 15:44
@dham dham added this pull request to the merge queue Jul 17, 2024
Merged via the queue into FEniCS:main with commit b507f2f Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants