Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 18 additions & 18 deletions include/aspect/mesh_deformation/fastscape.h
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,12 @@ namespace aspect
*/
void parse_parameters (ParameterHandler &prm);

/**
* A function that fills the viscosity derivatives in the
* MaterialModelOutputs object that is handed over, if they exist.
* Does nothing otherwise.
*/
void set_ghost_nodes(double *h, double *vx, double *vy, double *vz, int nx, int ny) const;
/**
* A function that fills the viscosity derivatives in the
* MaterialModelOutputs object that is handed over, if they exist.
* Does nothing otherwise.
*/
void set_ghost_nodes(double *h, double *vx, double *vy, double *vz, int nx, int ny) const;

private:
// Number of FastScape steps per ASPECT timestep.
Expand Down Expand Up @@ -213,7 +213,7 @@ namespace aspect
double kdd;
// Sediment transport coefficient.
double kdsed;

// Orographic parameters
int mmax;
int wb;
Expand Down Expand Up @@ -259,18 +259,18 @@ namespace aspect
double precision;


/**
* Interval between the generation of graphical output. This parameter
* is read from the input file and consequently is not part of the
* state that needs to be saved and restored.
*/
double output_interval;
/**
* Interval between the generation of graphical output. This parameter
* is read from the input file and consequently is not part of the
* state that needs to be saved and restored.
*/
double output_interval;

/**
* A time (in seconds) at which the last graphical output was supposed
* to be produced. Used to check for the next necessary output time.
*/
mutable double last_output_time;
/**
* A time (in seconds) at which the last graphical output was supposed
* to be produced. Used to check for the next necessary output time.
*/
mutable double last_output_time;
};
}
}
Expand Down
14 changes: 14 additions & 0 deletions source/material_model/rheology/visco_plastic.cc
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,20 @@ namespace aspect
composition_mask.set(i,false);
}

// These are the compositional fields used to track deposition depth and
// sediment age of the sediments deposited by the FastScape plugin.
// ToDo: insert check that these fields are only set as a mask when fastscape is used?
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's probably fine without checking, I don't think there is any instance where someone would set these fields and want them included in the rheology calculations.

if (this->introspection().compositional_name_exists("sediment_age"))
{
const int sedi_age_position_tmp = this->introspection().compositional_index_for_name("sediment_age");
composition_mask.set(sedi_age_position_tmp,false);
}
if (this->introspection().compositional_name_exists("deposition_depth"))
{
const int depo_depth_position_tmp = this->introspection().compositional_index_for_name("deposition_depth");
composition_mask.set(depo_depth_position_tmp,false);
}

return composition_mask;
}

Expand Down
Loading