Skip to content

Free 'communicate(Field3D)' function? #1473

Description

@johnomotani

In discussion under #1470, @d7919 suggested

I wonder if it would be worth introducing a free function communicate(Field3D &var) { var.getMesh()->communicate(var); return;}

I like the idea. Could tidy up user code, reduce uses of global mesh pointer, and allow handling of fields with different meshes in the same call (i.e. if f and g have different fieldmeshes, communicate(f, g) could handle calling communicate from each mesh).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions