-
Notifications
You must be signed in to change notification settings - Fork 104
Remove global mesh #3131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: next
Are you sure you want to change the base?
Remove global mesh #3131
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,9 +4,9 @@ | |
| * \brief Definition of 2D scalar field class | ||
| * | ||
| ************************************************************************** | ||
| * Copyright 2010 B.D.Dudson, S.Farley, M.V.Umansky, X.Q.Xu | ||
| * Copyright 2010-2025 BOUT++ contributors | ||
| * | ||
| * Contact: Ben Dudson, bd512@york.ac.uk | ||
| * Contact: Ben Dudson, dudson2@llnl.gov | ||
| * | ||
| * This file is part of BOUT++. | ||
| * | ||
|
|
@@ -55,16 +55,12 @@ class Field2D : public Field { | |
| public: | ||
| using ind_type = Ind2D; | ||
| /*! | ||
| * Constructor, taking an optional mesh pointer | ||
| * This mesh pointer is not used until the data is allocated, | ||
| * since Field2D objects can be globals, created before a mesh | ||
| * has been created. | ||
| * Constructor | ||
| * | ||
| * @param[in] localmesh The mesh which defines the field size. | ||
| * | ||
| * By default the global Mesh pointer (mesh) is used. | ||
| */ | ||
| Field2D(Mesh* localmesh = nullptr, CELL_LOC location_in = CELL_CENTRE, | ||
| Field2D(Mesh* localmesh, CELL_LOC location_in = CELL_CENTRE, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. warning: no header providing "CELL_LOC" is directly included [misc-include-cleaner] include/bout/field2d.hxx:26: - class Field2D;
+ #include "bout/bout_types.hxx"
+ class Field2D; |
||
| DirectionTypes directions_in = {YDirectionType::Standard, | ||
| ZDirectionType::Average}); | ||
|
|
||
|
|
@@ -84,7 +80,7 @@ public: | |
| * allocates data, and assigns the value \p val to all points including | ||
| * boundary cells. | ||
| */ | ||
| Field2D(BoutReal val, Mesh* localmesh = nullptr); | ||
| Field2D(BoutReal val, Mesh* localmesh); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. warning: no header providing "BoutReal" is directly included [misc-include-cleaner] Field2D(BoutReal val, Mesh* localmesh);
^ |
||
|
|
||
| /// Constructor from Array and Mesh | ||
| Field2D(Array<BoutReal> data, Mesh* localmesh, CELL_LOC location = CELL_CENTRE, | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: no header providing "CELL_CENTRE" is directly included [misc-include-cleaner]
Field2D(Mesh* localmesh, CELL_LOC location_in = CELL_CENTRE, ^