gss_init_function

Function to allocate memory for solid-solutions

Holland et al., 2018 - Melting of peridotites through to granites Igneous dataset to use with tc-ds633.txt “bi”,”cpx”,”cd”,”ep”,”fl”,”g”,”hb”,”ilm”,”liq”,”mu”, “ol”, “opx”,”fsp”,”spn”

PP & SS_flags

Declare flags needed for leveling and pge algorithms

SS/PP

IN

ACT

HLD

RMV

CYC

REIN

[0]

0/1

0/1

0/1

0/1

0/n

0/1

[1]

0/1

0/1

0/1

0/1

0/n

0/1

[2]

0/1

0/1

0/1

0/1

0/n

0/1

0/1

0/1

0/1

0/1

0/n

0/1

[m]

0/1

0/1

0/1

0/1

0/n

0/1

  • IN: allowed phase (satisfying bulk rock constraints)

  • ACT: considered phase (part of the active set of phases)

  • HLD: on hold (not in the active set but still scanned at every iteration)

  • RMV: removed (not considered anymore)

  • REIN: phase reintroduced

  • m: number of PP or SS

  • n: number of cycles

csd_phase_set CP_INIT_function(csd_phase_set cp, global_variable gv)
[source]

allocate memory to store considered phases

n (array dim) was originally equal to gv.len_ox + 1; However this has been changed following update on liq model (Green et al., 2023) and the use of 4 order variables summing up the total number of compositional variables to 14 for a chemical system of 11 oxides This means that the max number of the endmembers can be >= n-oxide + 1

stb_system SP_INIT_function(stb_system sp, global_variable gv)
[source]

allocate memory to store considered phases

SS_ref G_SS_aq17_init_function(SS_ref SS_ref_db, int EM_database, global_variable gv)
[source]

/

SS_ref G_SS_mb_liq_init_function(SS_ref SS_ref_db, int EM_database, global_variable gv)
[source]

allocate memory for L

SS_ref G_SS_mb_hb_init_function(SS_ref SS_ref_db, int EM_database, global_variable gv)
[source]

allocate memory for hb

SS_ref G_SS_mb_aug_init_function(SS_ref SS_ref_db, int EM_database, global_variable gv)
[source]

allocate memory for aug

SS_ref G_SS_mb_dio_init_function(SS_ref SS_ref_db, int EM_database, global_variable gv)
[source]

allocate memory for dio

SS_ref G_SS_mb_opx_init_function(SS_ref SS_ref_db, int EM_database, global_variable gv)
[source]

allocate memory for opx

SS_ref G_SS_mb_g_init_function(SS_ref SS_ref_db, int EM_database, global_variable gv)
[source]

allocate memory for g

SS_ref G_SS_mb_ol_init_function(SS_ref SS_ref_db, int EM_database, global_variable gv)
[source]

allocate memory for ol

SS_ref G_SS_mb_fsp_init_function(SS_ref SS_ref_db, int EM_database, global_variable gv)
[source]

allocate memory for fsp

SS_ref G_SS_mb_abc_init_function(SS_ref SS_ref_db, int EM_database, global_variable gv)
[source]

allocate memory for abc

SS_ref G_SS_mb_k4tr_init_function(SS_ref SS_ref_db, int EM_database, global_variable gv)
[source]

allocate memory for k4tr

SS_ref G_SS_mb_sp_init_function(SS_ref SS_ref_db, int EM_database, global_variable gv)
[source]

allocate memory for sp

SS_ref G_SS_mb_ilm_init_function(SS_ref SS_ref_db, int EM_database, global_variable gv)
[source]

allocate memory for ilm

SS_ref G_SS_mb_ilmm_init_function(SS_ref SS_ref_db, int EM_database, global_variable gv)
[source]

allocate memory for ilmm

SS_ref G_SS_mb_ep_init_function(SS_ref SS_ref_db, int EM_database, global_variable gv)
[source]

allocate memory for ep

SS_ref G_SS_mb_bi_init_function(SS_ref SS_ref_db, int EM_database, global_variable gv)
[source]

allocate memory for bi

SS_ref G_SS_mb_mu_init_function(SS_ref SS_ref_db, int EM_database, global_variable gv)
[source]

allocate memory for mu

SS_ref G_SS_mb_chl_init_function(SS_ref SS_ref_db, int EM_database, global_variable gv)
[source]

allocate memory for chl

SS_ref G_SS_mp_liq_init_function(SS_ref SS_ref_db, int EM_database, global_variable gv)
[source]

allocate memory for liq_mp

SS_ref G_SS_mp_fsp_init_function(SS_ref SS_ref_db, int EM_database, global_variable gv)
[source]

allocate memory for fsp_mp

SS_ref G_SS_mp_bi_init_function(SS_ref SS_ref_db, int EM_database, global_variable gv)
[source]

allocate memory for bi_mp

SS_ref G_SS_mp_g_init_function(SS_ref SS_ref_db, int EM_database, global_variable gv)
[source]

allocate memory for g_mp

SS_ref G_SS_mp_ep_init_function(SS_ref SS_ref_db, int EM_database, global_variable gv)
[source]

allocate memory for ep_mp

SS_ref G_SS_mp_ma_init_function(SS_ref SS_ref_db, int EM_database, global_variable gv)
[source]

allocate memory for ma_mp

SS_ref G_SS_mp_mu_init_function(SS_ref SS_ref_db, int EM_database, global_variable gv)
[source]

allocate memory for mu_mp

SS_ref G_SS_mp_opx_init_function(SS_ref SS_ref_db, int EM_database, global_variable gv)
[source]

allocate memory for opx_mp

SS_ref G_SS_mp_sa_init_function(SS_ref SS_ref_db, int EM_database, global_variable gv)
[source]

allocate memory for sa_mp

SS_ref G_SS_mp_cd_init_function(SS_ref SS_ref_db, int EM_database, global_variable gv)
[source]

allocate memory for cd_mp

SS_ref G_SS_mp_st_init_function(SS_ref SS_ref_db, int EM_database, global_variable gv)
[source]

allocate memory for st_mp

SS_ref G_SS_mp_chl_init_function(SS_ref SS_ref_db, int EM_database, global_variable gv)
[source]

allocate memory for chl_mp

SS_ref G_SS_mp_ctd_init_function(SS_ref SS_ref_db, int EM_database, global_variable gv)
[source]

allocate memory for ctd_mp

SS_ref G_SS_mp_sp_init_function(SS_ref SS_ref_db, int EM_database, global_variable gv)
[source]

allocate memory for sp_mp

SS_ref G_SS_mp_ilm_init_function(SS_ref SS_ref_db, int EM_database, global_variable gv)
[source]

allocate memory for ilm

SS_ref G_SS_mp_ilmm_init_function(SS_ref SS_ref_db, int EM_database, global_variable gv)
[source]

allocate memory for ilmm_mp

SS_ref G_SS_mp_mt_init_function(SS_ref SS_ref_db, int EM_database, global_variable gv)
[source]

allocate memory for mt_mp

SS_ref G_SS_ig_fper_init_function(SS_ref SS_ref_db, int EM_database, global_variable gv)
[source]
/

/

IGNEOUS DATABASE (Holland et al., 2018)

allocate memory for fper

SS_ref G_SS_ig_bi_init_function(SS_ref SS_ref_db, int EM_database, global_variable gv)
[source]

allocate memory for biotite

SS_ref G_SS_ig_cpx_init_function(SS_ref SS_ref_db, int EM_database, global_variable gv)
[source]

allocate memory for clinopyroxene

SS_ref G_SS_ig_cd_init_function(SS_ref SS_ref_db, int EM_database, global_variable gv)
[source]

allocate memory for cordierite

SS_ref G_SS_ig_ep_init_function(SS_ref SS_ref_db, int EM_database, global_variable gv)
[source]

allocate memory for epidote

SS_ref G_SS_ig_fl_init_function(SS_ref SS_ref_db, int EM_database, global_variable gv)
[source]

allocate memory for fluid

SS_ref G_SS_ig_g_init_function(SS_ref SS_ref_db, int EM_database, global_variable gv)
[source]

allocate memory for garnet

SS_ref G_SS_ig_hb_init_function(SS_ref SS_ref_db, int EM_database, global_variable gv)
[source]

allocate memory for hornblende

SS_ref G_SS_ig_ilm_init_function(SS_ref SS_ref_db, int EM_database, global_variable gv)
[source]

allocate memory for ilm

SS_ref G_SS_ig_liq_init_function(SS_ref SS_ref_db, int EM_database, global_variable gv)
[source]

allocate memory for liqHw

SS_ref G_SS_ig_mu_init_function(SS_ref SS_ref_db, int EM_database, global_variable gv)
[source]

allocate memory for muscovite

SS_ref G_SS_ig_ol_init_function(SS_ref SS_ref_db, int EM_database, global_variable gv)
[source]

allocate memory for olivine

SS_ref G_SS_ig_opx_init_function(SS_ref SS_ref_db, int EM_database, global_variable gv)
[source]

allocate memory for orthopyroxene

SS_ref G_SS_ig_fsp_init_function(SS_ref SS_ref_db, int EM_database, global_variable gv)
[source]

allocate memory for plagioclase

SS_ref G_SS_ig_spn_init_function(SS_ref SS_ref_db, int EM_database, global_variable gv)
[source]

allocate memory for spn

SS_ref G_SS_um_fluid_init_function(SS_ref SS_ref_db, int EM_database, global_variable gv)
[source]

allocate memory for fluid

SS_ref G_SS_um_ol_init_function(SS_ref SS_ref_db, int EM_database, global_variable gv)
[source]

allocate memory for ol

SS_ref G_SS_um_br_init_function(SS_ref SS_ref_db, int EM_database, global_variable gv)
[source]

allocate memory for br

SS_ref G_SS_um_ch_init_function(SS_ref SS_ref_db, int EM_database, global_variable gv)
[source]

allocate memory for ch

SS_ref G_SS_um_atg_init_function(SS_ref SS_ref_db, int EM_database, global_variable gv)
[source]

allocate memory for atg

SS_ref G_SS_um_g_init_function(SS_ref SS_ref_db, int EM_database, global_variable gv)
[source]

allocate memory for g

SS_ref G_SS_um_ta_init_function(SS_ref SS_ref_db, int EM_database, global_variable gv)
[source]

allocate memory for ta

SS_ref G_SS_um_chl_init_function(SS_ref SS_ref_db, int EM_database, global_variable gv)
[source]

allocate memory for chl

SS_ref G_SS_um_anth_init_function(SS_ref SS_ref_db, int EM_database, global_variable gv)
[source]

allocate memory for anth

SS_ref G_SS_um_spi_init_function(SS_ref SS_ref_db, int EM_database, global_variable gv)
[source]

allocate memory for spi

SS_ref G_SS_um_opx_init_function(SS_ref SS_ref_db, int EM_database, global_variable gv)
[source]

allocate memory for opx

SS_ref G_SS_um_po_init_function(SS_ref SS_ref_db, int EM_database, global_variable gv)
[source]

allocate memory for po

SS_ref G_SS_init_EM_function(int ph_id, SS_ref SS_ref_db, int EM_database, char *name, global_variable gv)
[source]

attributes the right solution phase to the solution phase array