Changeset 21742
- Timestamp:
- 05/23/17 14:57:13 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/analyses/SealevelriseAnalysis.cpp
r21741 r21742 90 90 iomodel->FetchData(°acc,"md.slr.degacc"); 91 91 M=reCast<int,IssmDouble>(180./degacc+1.); 92 93 // AD performance is sensitive to calls to ensurecontiguous. 94 // // Providing "t" will cause ensurecontiguous to be called. 95 #ifdef _HAVE_AD_ 92 96 G_elastic=xNew<IssmDouble>(M,"t"); 93 97 U_elastic=xNew<IssmDouble>(M,"t"); 94 98 H_elastic=xNew<IssmDouble>(M,"t"); 99 #else 100 G_elastic=xNew<IssmDouble>(M); 101 U_elastic=xNew<IssmDouble>(M); 102 H_elastic=xNew<IssmDouble>(M); 103 #endif 104 95 105 96 106 /*compute combined legendre + love number (elastic green function:*/ 97 107 m=DetermineLocalSize(M,IssmComm::GetComm()); 98 108 GetOwnershipBoundariesFromRange(&lower_row,&upper_row,m,IssmComm::GetComm()); 109 // AD performance is sensitive to calls to ensurecontiguous. 110 // // Providing "t" will cause ensurecontiguous to be called. 111 #ifdef _HAVE_AD_ 99 112 G_elastic_local=xNew<IssmDouble>(m,"t"); 100 113 U_elastic_local=xNew<IssmDouble>(m,"t"); 101 114 H_elastic_local=xNew<IssmDouble>(m,"t"); 115 #else 116 G_elastic_local=xNew<IssmDouble>(m); 117 U_elastic_local=xNew<IssmDouble>(m); 118 H_elastic_local=xNew<IssmDouble>(m); 119 #endif 102 120 103 121 for(int i=lower_row;i<upper_row;i++){
Note:
See TracChangeset
for help on using the changeset viewer.