function shift_num_cores_value(num_cores_input, previous_cluster){
  const prev_max_cores = max_cores_for_cluster(previous_cluster);
  const cluster = current_cluster_capitalized();

  if(num_cores_input.val() == prev_max_cores){
    num_cores_input.val(max_cores_for_cluster(cluster));
  }
}
/**
 * Shift the number of cores value up or down when the cluster changes.
 *
 * Example: I've set cores to 28, owens maximum. Then I change clusters
 * to pitzer. This value should shift to 40, which is Pitzer's maximum.
 *
 * @param      {element}   num_cores_input     the num_cores element
 * @param      {string}    previous_cluster    the name of the previous cluster
 */
Shift the number of cores value up or down when the cluster changes.
Example: I've set cores to 28, owens maximum. Then I change clusters
to pitzer. This value should shift to 40, which is Pitzer's maximum.

@param      {element}   num_cores_input     the num_cores element
@param      {string}    previous_cluster    the name of the previous cluster
Shift the number of cores value up or down when the cluster changes . Example : I ' ve set cores to 28 owens maximum . Then I change clusters to pitzer . This value should shift to 40 which is Pitzer ' s maximum . @param { element } num_cores_input the num_cores element @param { string } previous_cluster the name of the previous cluster
function shift_num_cores_value(num_cores_input, previous_cluster){
  const prev_max_cores = max_cores_for_cluster(previous_cluster);
  const cluster = current_cluster_capitalized();
  if(num_cores_input.val() == prev_max_cores){
    num_cores_input.val(max_cores_for_cluster(cluster));
  }
}
function shift_num_cores_value ( num_cores_input , previous_cluster ) { const prev_max_cores = max_cores_for_cluster ( previous_cluster ) ; const cluster = current_cluster_capitalized ( ) ; if ( num_cores_input . val ( ) == prev_max_cores ) { num_cores_input . val ( max_cores_for_cluster ( cluster ) ) ; } }
Shift the number of cores value up or down when the cluster changes.
Shift the number of cores value up or down when the cluster changes .